SetPlayerGravity

From Multi Theft Auto: Wiki
Revision as of 04:11, 12 April 2007 by Erorr404 (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Description

This function sets the gravity level of a player.

Syntax

setPlayerGravity ( player thePlayer, float level )

Required Arguments

  • thePlayer: The player whose gravity to change.
  • level: The level of gravity ( default is 0.008 )

Example

This example allows the user to type a command to change their gravity:

addCommandHandler ( "setplayergravity", "playerGrav" )
function playerGrav ( source, command, gravid )
    setPlayerGravity ( source, gravid )
end

See Also