SetGravity

From Multi Theft Auto: Wiki
Revision as of 04:14, 12 April 2007 by Erorr404 (talk | contribs)
Jump to navigation Jump to search

Description

This function sets the servers 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

addCommandHandler ( "setgravity", "grav" )
function grav ( source, command, gravid )
    setGravity ( gravid )
end

See Also

Shared