Garry's Mod Wiki

Revision Difference

Entity:PhysWake#565278

<function name="PhysWake" parent="Entity" type="classfunc"> <description>Wakes up the entity's physics object</description> <realm>Shared</realm> <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 ( !IsValid( phys ) ) then return end⤶ ⤶ phys:Wake()⤶ </code>⤶ </example></function>