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

@ -85,6 +85,8 @@ public:
{
MoveState mMoveState;
F32 mMoveSpeed = 1.0;
void setMoveSpeed(F32 speed) { mMoveSpeed = speed; };
F32 getMoveSpeed() { return mMoveSpeed; };
bool mMoveSlowdown; // Slowdown as we near the destination
Point3F mLastLocation; // For stuck check
S32 mMoveStuckTestCountdown; // The current countdown until at AI starts to check if it is stuck