G.IsPhysicsObject

From GMod Wiki

Jump to: navigation, search
Function
Syntax IsPhysicsObject( PhysObj physobj )
Where is this used?
Description:
Returns if the argument is a physics object.
Returns: Boolean
Part of Library: Global Functions
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=G.IsPhysicsObject]G.IsPhysicsObject [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionPrint true if self has a valid Physics Object, else print false.
Used onNewerShared.png
Code
print(IsPhysicsObject(self:GetPhysicsObject()))
OutputTrue, if self has a valid Physics Object.
Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox