set3DENAttribute is unable to set combatMode, behaviour, speedMode of a group
but when editing is manually the get3DENAttribute works well
Description
Details
- Legacy ID
- 1773651191
- Severity
- None
- Resolution
- Open
- Reproducibility
- Always
- Operating System
- Windows 7
- Category
- Eden Editor
execute in 3den editor
CODI_3DEN_fnc_createCityPatrolGroup = {
private["_pos","_unit","_wp","_p","_wpType"];
_pos = _this select 0;
_pos set [2, 0];
_unit = create3DENEntity ["Object", "O_Soldier_TL_F", _pos];
_p = [_pos select 0, _pos select 1, 0];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_Soldier_AR_F", _p];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_Soldier_LAT_F", _p];
_p set [1, (_p select 1)-2];
_unit = (group _unit) create3DENEntity ["Object", "O_medic_F", _p];
(group _unit) set3DENAttribute ["combatMode", "RED"];
(group _unit) set3DENAttribute ["behaviour", "SAFE"];
(group _unit) set3DENAttribute ["speedMode", "LIMITED"];
G = group _unit;
for "_i" from 1 to 10 do
{
_p = [[[_pos, 100]], ["water", "out"]] call BIS_fnc_randomPos; _wpType = "MOVE"; if (_i == 10) then { _wpType = "CYCLE"; }; _wp = (group _unit) create3DENEntity ["Waypoint", _wpType, _p]; _wp set3DENAttribute ["timeout", [0,0,0]];
};
};
[getPos get3DENCamera] call CODI_3DEN_fnc_createCityPatrolGroup;
(group _unit) set3DENAttribute ["combatMode", "RED"];
(group _unit) set3DENAttribute ["behaviour", "SAFE"];
(group _unit) set3DENAttribute ["speedMode", "LIMITED"];
will have not the desired effect