PhysObj.IsAsleep

From GMod Wiki

Jump to: navigation, search
Function
Syntax PhysObj:Sleep( )
Description:
Returns whether or not the physics object is "asleep".
Returns: Boolean
In Object: Physobj
Realm: NewerShared.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=PhysObj.IsAsleep]PhysObj.IsAsleep [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]


Kdict.pngThis page needs reviewing. An expert needs to verify that all of the information in this page is correct.
See more articles for review here.

Examples

DescriptionWakes the physics object of entity 55 if it's asleep.
Used onNewerShared.png
Code
local phys1 = Entity(55):GetPhysicsObject()
if phys1:IsAsleep() then
	phys1:Wake()
end
OutputN/A


See also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox