PhysObj.IsGravityEnabled
From GMod Wiki
Revision as of 17:44, 31 August 2011 by TheFreeman193 (Talk | contribs)
Function | |
Syntax | PhysObj.IsGravityEnabled( ) |
Description: | |
Returns whether an object has gravity enabled. | |
Returns: | Boolean |
In Object: | Physobj |
Realm: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=PhysObj.IsGravityEnabled]PhysObj.IsGravityEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | This example will print True to the console if an entity has gravity enabled. |
---|---|
Used on | http://wiki.garrysmod.com |
Code | if ent:GetPhysicsObject():IsGravityEnabled() then print('True') end |
Output | N/A |