Page MenuHomeFeedback Tracker

set3DENAttribute broken for setting group attributes
New, WishlistPublic

Description

set3DENAttribute is unable to set combatMode, behaviour, speedMode of a group
but when editing is manually the get3DENAttribute works well

Details

Legacy ID
1773651191
Severity
None
Resolution
Open
Reproducibility
Always
Category
Eden Editor
Steps To Reproduce

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;

Additional Information

(group _unit) set3DENAttribute ["combatMode", "RED"];
(group _unit) set3DENAttribute ["behaviour", "SAFE"];
(group _unit) set3DENAttribute ["speedMode", "LIMITED"];
will have not the desired effect

Event Timeline

Coding edited Steps To Reproduce. (Show Details)Feb 17 2016, 1:43 PM
Coding edited Additional Information. (Show Details)
Coding set Category to Eden Editor.
Coding set Reproducibility to Always.
Coding set Severity to None.
Coding set Resolution to Open.
Coding set Legacy ID to 1773651191.May 8 2016, 1:45 PM
Coding added a subscriber: Coding.

for speedmode the integers 0, 1, 2 seems to work

seems resolved now for "combatMode" and "behaviour"