G.IsPhysicsObject
From GMod Wiki
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: | |
BBCode Link: | [b][url=http://wiki.garrysmod.com/?title=G.IsPhysicsObject]G.IsPhysicsObject [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b] |
Examples
Description | Print true if self has a valid Physics Object, else print false. |
---|---|
Used on | |
Code | print(IsPhysicsObject(self:GetPhysicsObject())) |
Output | True, if self has a valid Physics Object. |