SetGravity: Difference between revisions

From Multi Theft Auto: Wiki
Jump to navigation Jump to search
m (Affects also vehicles?)
No edit summary
Line 21: Line 21:
==See Also==
==See Also==
{{World functions}}
{{World functions}}
[[ru:setGravity]]

Revision as of 17:46, 7 March 2010

This function sets the server's gravity level.

Note that this does not effect peds/players; to set ped/player gravity use setPedGravity.

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