mirror of
https://gitea.wildfiregames.com/0ad/0ad
synced 2026-06-16 05:13:58 -07:00
Get the UnitAI order data directly
The cached data wasn't always up to date. I coudn't figure out when to update it.
This commit is contained in:
parent
3afdf64eee
commit
4b516b336e
1 changed files with 1 additions and 1 deletions
|
|
@ -649,7 +649,7 @@ export const Entity = Class({
|
|||
|
||||
"getStance": function() { return this._entity.stance; },
|
||||
"unitAIState": function() { return this._entity.unitAIState; },
|
||||
"unitAIOrderData": function() { return this._entity.unitAIOrderData; },
|
||||
"unitAIOrderData": function() { return SimEngine.QueryInterface(this.id(), Sim.IID_UnitAI).GetOrders(); },
|
||||
|
||||
"hitpoints": function() { return this._entity.hitpoints; },
|
||||
"isHurt": function() { return this.hitpoints() < this.maxHitpoints(); },
|
||||
|
|
|
|||
Loading…
Reference in a new issue