getmovedestination, set/get speed, targetting script commands

todo: need to see why getAIController().setAimLocation("10 10 0"); seems to get into an onreachdestination+stuck callback loop
This commit is contained in:
AzaezelX 2025-04-16 17:27:26 -05:00
parent f00b8e1ae0
commit f3ef698e89
6 changed files with 187 additions and 3 deletions

View file

@ -274,3 +274,17 @@ DefineEngineMethod(AIController, setMoveDestination, void, (Point3F goal, bool s
{
object->getNav()->setMoveDestination(goal, slowDown);
}
DefineEngineMethod(AIController, getMoveDestination, Point3F, (), ,
"@brief Get the AIPlayer's current destination.\n\n"
"@return Returns a point containing the \"x y z\" position "
"of the AIPlayer's current move destination. If no move destination "
"has yet been set, this returns \"0 0 0\"."
"@see setMoveDestination()\n")
{
return object->getNav()->getMoveDestination();
}