Garry's Mod Wiki

Garry's Mod Wiki

  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.

This site is a community mirror of the official Garry's Mod wiki.. This site is not maintained by Facepunch Studios.

Page content is automatically updated twice a day. Edits and history are not available.

Last Parsed: Loading...