PhysObj.IsGravityEnabled

From GMod Wiki

Jump to: navigation, search
Function
Syntax PhysObj.IsGravityEnabled( )
Description:
Returns whether an object has gravity enabled.
Returns: Boolean
In Object: Physobj
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.IsGravityEnabled]PhysObj.IsGravityEnabled [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Examples

DescriptionThis example will print True to the console if an entity has gravity enabled.
Used onhttp://wiki.garrysmod.com
Code
if ent:GetPhysicsObject():IsGravityEnabled() then
	print('True')
end
 
OutputN/A

See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox