I would like, in Lua, and in few lines, to get the default value of standingfireorder and standingmoveorder of a unitDefID.
I thought about using UnitDefs[unitDefID].moveState and UnitDefs[unitDefID].fireState however, they are both always -1 (save for buildings where moveState is 1).
Getting default fire & move state
Moderator: Moderators
Re: Getting default fire & move state
-1 := copy state from builder/parent
Re: Getting default fire & move state
And what happens when it has no parent?
I would have assumed it would then follow the FBI, but my tests seem to indicate that instead it default to Fire At Will and Maneuver.
I would have assumed it would then follow the FBI, but my tests seem to indicate that instead it default to Fire At Will and Maneuver.
