Set unit pos changes drastically on SQF export (DOWN instead of UP and UP instead of DOWN)
Description
Description
Details
Details
- Severity
- Trivial
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 10 x64
- Category
- Eden Editor
Steps To Reproduce
Variant A
- Set up unit pos UP
- Export mission to SQF
Expected result:
_this setUnitPos "UP"
Actual result:
_this setUnitPos "DOWN"
Variant B
- Set up unit pos DOWN
- Export mission to SQF
Expected result:
_this setUnitPos "DOWN"
Actual result:
_this setUnitPos "UP"
Event Timeline
Comment Actions
This is caused by the following line:
if (objectBrain > 0 && _value != 3) then {format ["_this setUnitPos ""%1"";",["DOWN","MIDDLE","UP","AUTO"] select _value] call _fnc_addLine;}; //L555
In the attribute, the order is different:
attributeSave = "['auto','down','middle','up'] select (missionnamespace getvariable ['Stance_value',0]);"; //configFile >> "Cfg3DEN" >> "Attributes" >> "UnitPos" >> "attributeSave"