MCPcopy Create free account
hub / github.com/GarageGames/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 1

DefineConsoleMethodFunction · 0.80

Calls 1

getIdMethod · 0.45

Tested by

no test coverage detected