Entity:AddToMotionController

From Garry's Mod
Jump to: navigation, search
 Entity:AddToMotionController( )

Description

Adds a PhysObject to the entity's motion controller so that ENTITY:PhysicsSimulate will be called for given PhysObject as well.

You must first create a motion controller with Entity:StartMotionController.

You can remove added PhysObjects by using Entity:RemoveFromMotionController.

NOTE Only works on a scripted Entity of anim type

Arguments

PhysObj physObj

The PhysObj to add to the motion controller.
Personal tools
Navigation