mirror of
https://github.com/TorqueGameEngines/Torque3D.git
synced 2026-04-24 22:05:40 +00:00
Added scriptable move triggers for AIPlayers. Fixes an issue where AIPlayers were setting move trigger states from invalid memory. Enables the use of player poses and actions.
This commit is contained in:
parent
7097ce6466
commit
bc230be8a2
2 changed files with 99 additions and 3 deletions
|
|
@ -58,6 +58,9 @@ private:
|
|||
|
||||
Point3F mAimOffset;
|
||||
|
||||
// move triggers
|
||||
bool mMoveTriggers[MaxTriggerKeys];
|
||||
|
||||
// Utility Methods
|
||||
void throwCallback( const char *name );
|
||||
|
||||
|
|
@ -91,6 +94,10 @@ public:
|
|||
void setMoveDestination( const Point3F &location, bool slowdown );
|
||||
Point3F getMoveDestination() const { return mMoveDestination; }
|
||||
void stopMove();
|
||||
|
||||
void setMoveTrigger( U32 slot, const bool isSet = true );
|
||||
bool getMoveTrigger( U32 slot ) const;
|
||||
void clearMoveTriggers();
|
||||
};
|
||||
|
||||
#endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue