SetGravity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
__NOTOC__
__NOTOC__
{{Server client function}}
{{Server client function}}
==Description==
This function sets the server's gravity level. '''Note''' that this does not effect players and their vehicles; to set player gravity use [[setPlayerGravity]].
This function sets the server's gravity level. Note that this does not effect players and their vehicles; to set player gravity use [[setPlayerGravity]].


==Syntax==
==Syntax==

Revision as of 14:10, 12 June 2008

This function sets the server's gravity level. Note that this does not effect players and their vehicles; to set player gravity use setPlayerGravity.

Syntax

setGravity ( float level )

Required Arguments

  • level: The level of gravity ( default is 0.008 )

Example

function grav ( sourcePlayer, command, level )
    setGravity ( tonumber(level) )
end
addCommandHandler ( "setgravity", grav )

See Also