MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / setMoveSpeed

Method setMoveSpeed

Engine/source/T3D/aiClient.cpp:115–120  ·  view source on GitHub ↗

* Sets the speed at which this AI moves * * @param speed Speed to move, default player was 10 */

Source from the content-addressed store, hash-verified

113 * @param speed Speed to move, default player was 10
114 */
115void AIClient::setMoveSpeed( F32 speed ) {
116 if( speed <= 0.0f )
117 mMoveSpeed = 0.0f;
118 else
119 mMoveSpeed = getMin( 1.0f, speed );
120}
121
122/**
123 * Sets the movement mode for this AI

Callers 1

DefineEngineMethodFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected