Garry's Mod Wiki

Entity:AddToMotionController

Entity:AddToMotionController( PhysObj physObj )

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.

Only works on a scripted Entity of anim type

Arguments

1 PhysObj physObj
The PhysObj to add to the motion controller.

Page Links


Special Pages


Wikis

?

Render Time: 49ms

Session 0
DB GetPage 3
Generate Html 15
SaveChanges 12
Render Body 0
Render Sidebar 17