Page 1 of 1
firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 17:46
by Forboding Angel
I can't seem to find these anywhere in the wiki. Can someone else confirm?
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 18:29
by Silentwings
What are they?
(A search of the wiki and the engine source reveals nothing...)
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 18:50
by nixtux
Deprecated / renamed or never added TA'ism
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 19:47
by zwzsg
Aren't they the Hold Fire / Return Fire / Fire at will and Stand Still / Maneuver / Roam tristate buttons?
But yeah, not sure it was ever implemented.
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 21:28
by FLOZi
In OTA the Standing* functions set the initial value, and the *orders tags enable and disable the button.
In Spring the former are renamed to:
https://springrts.com/wiki/Gamedev:Unit ... :fireState
https://springrts.com/wiki/Gamedev:Unit ... :moveState
They are in the
https://springrts.com/wiki/Gamedev:UnitDefs#Commands subsection
If you wish to replicate the behaviour of the latter tags and remove the button altogether, this is easily done with lua e.g.
Code: Select all
local toRemove = {CMD.FIRE_STATE, CMD.MOVE_STATE}
for _, cmdID in pairs(toRemove) do
local cmdDescID = Spring.FindUnitCmdDesc(unitID, cmdID)
Spring.RemoveUnitCmdDesc(unitID, cmdDescID)
end
You might also try the '-1' value for the other tags but I'm not sure on that, and it has other effects as documented in the wiki.
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 14 Jun 2016, 22:15
by Forboding Angel
zwzsg wrote:Aren't they the Hold Fire / Return Fire / Fire at will and Stand Still / Maneuver / Roam tristate buttons?
But yeah, not sure it was ever implemented.
Yes they are, and the tags work properly. That's why I was wondering why there was no documentation.
EDIT: OMGEEE CODEBOX EXTENSION, @abma I LURVE YOUUU!
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 15 Jun 2016, 08:09
by Silentwings
the tags work properly
Springs differently named versions of them do (as in FLOZi's post) but the tags you've named in the title of this thread don't exist.
There are STANDINGMOVEORDERS and STANDINGFIREORDERS (plural...) which turn out to be COB constants
https://springrts.com/wiki/Lua_ConstCOB. The two *STANDORDERS seem not to exist anywhere.
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Posted: 15 Jun 2016, 22:05
by Forboding Angel
For anyone looking for a "replacement" for these tags, check out "firestate" and "movestate" in the wiki.