Entity.StartMotionController

From GMod Wiki

Jump to: navigation, search
Function
Syntax Entity.StartMotionController( )
Description:
Overrides the default physics.
Returns: nil
In Object: Entity
Realm: NewerServer.png
BBCode Link: [b][url=http://wiki.garrysmod.com/?title=Entity.StartMotionController]Entity.StartMotionController [img]http://wiki.garrysmod.com/favicon.ico[/img][/url][/b]



Examples

DescriptionOverrides our SENTs physics simulation.
Used onNewerServer.png
Code
self:StartMotionController() //This should go in ENT:Initialize()
 
function ENT:PhysicsSimulate( phys, delta ) //This is the function that will override th physics simulation
 
	//Simulate custom physics here.
 
end
OutputOur SENT now has custom physics simulation.


Additional Notes

See Also

Personal tools
Namespaces
Variants
Actions
Navigation
Lua Scripting
Functions
Hooks
Toolbox