PhysObj.IsAsleep

From GMod Wiki

Revision as of 19:00, 29 October 2009 by Crazy Quebecer (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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