firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Moderator: Moderators
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
I can't seem to find these anywhere in the wiki. Can someone else confirm?
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
What are they?
(A search of the wiki and the engine source reveals nothing...)
(A search of the wiki and the engine source reveals nothing...)
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Deprecated / renamed or never added TA'ism
Last edited by nixtux on 14 Jun 2016, 20:11, edited 1 time in total.
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
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.
But yeah, not sure it was ever implemented.
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
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.
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.
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
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
Yes they are, and the tags work properly. That's why I was wondering why there was no documentation.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.
EDIT: OMGEEE CODEBOX EXTENSION, @abma I LURVE YOUUU!
- Silentwings
- Posts: 3720
- Joined: 25 Oct 2008, 00:23
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
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.the tags work properly
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.
- Forboding Angel
- Evolution RTS Developer
- Posts: 14673
- Joined: 17 Nov 2005, 02:43
Re: firestandorders, mobilestandorders, standingfireorder, standingmoveorder Not Documented?
For anyone looking for a "replacement" for these tags, check out "firestate" and "movestate" in the wiki.