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

Method setTargetObject

Engine/source/T3D/aiClient.cpp:91–96  ·  view source on GitHub ↗

* Sets the object the bot is targeting * * @param targetObject The object to target */

Source from the content-addressed store, hash-verified

89 * @param targetObject The object to target
90 */
91void AIClient::setTargetObject( ShapeBase *targetObject ) {
92 if ( !targetObject || !bool( mTargetObject ) || targetObject->getId() != mTargetObject->getId() )
93 mTargetInLOS = false;
94
95 mTargetObject = targetObject;
96}
97
98/**
99 * Returns the target object

Callers 2

onInspectMethod · 0.45
DefineEngineMethodFunction · 0.45

Calls 1

getIdMethod · 0.65

Tested by

no test coverage detected