Garry's Mod Wiki

Revision Difference

Entity:PhysWake#544120

<function name="PhysWake" parent="Entity" type="classfunc"> <description>Wakes up the entity's physics object</description> <realm>Shared</realm> <file line="144-L151">lua/includes/extensions/entity.lua</file> <file line="156-L163">lua/includes/extensions/entity.lua</file> </function> <example> <description>This is what the function does internally.</description> <code> local phys = self:GetPhysicsObject() if (phys:IsValid()) then⤶ phys:Wake() end⤶ if ( !IsValid( phys ) ) then return end⤶ ⤶ phys:Wake() </code> ⤶ </example></example>