Page 1 of 1

Getting default fire & move state

Posted: 14 Dec 2009, 17:42
by zwzsg
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).

Re: Getting default fire & move state

Posted: 14 Dec 2009, 19:52
by jK
-1 := copy state from builder/parent

Re: Getting default fire & move state

Posted: 14 Dec 2009, 20:06
by zwzsg
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.