mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-02-26 10:03:48 +00:00
fix aim safeties to actually be safe, add an explicit clearAim script command
This commit is contained in:
parent
14a03dfc6c
commit
e37ae27bc0
2 changed files with 8 additions and 3 deletions
|
|
@ -181,6 +181,11 @@ DefineEngineMethod(AIController, setAimObject, void, (const char* objName, Point
|
|||
object->setAim(0, 0.0f, offset);
|
||||
}
|
||||
|
||||
DefineEngineMethod(AIController, clearAim, void, (), , "clears the bot's target.")
|
||||
{
|
||||
object->clearAim();
|
||||
}
|
||||
|
||||
DefineEngineMethod(AIController, getAimObject, S32, (), ,
|
||||
"@brief Gets the object the AIPlayer is targeting.\n\n"
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue