Garry's Mod Wiki


  PhysObj:EnableMotion( boolean enable )


Sets whether the physobject should be able to move or not.

This is the exact method the Physics Gun uses to freeze props. If a motion-disabled physics object is grabbed with the physics gun, the object will be able to move again. To disallow this, use GM:PhysgunPickup.


1 boolean enable
True to enable, false to disable.