mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-06-20 23:24:16 +00: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:
@@ -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(); },
|
||||
|
||||
Reference in New Issue
Block a user