Garry's Mod Wiki

PhysObj:EnableMotion

  PhysObj:EnableMotion( boolean enable )

Description

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.

Arguments

1 boolean enable
True to enable, false to disable.