fix aim safeties to actually be safe, add an explicit clearAim script command

This commit is contained in:
AzaezelX 2025-04-16 17:58:30 -05:00
parent 14a03dfc6c
commit e37ae27bc0
2 changed files with 8 additions and 3 deletions

View file

@ -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"