arjay 7 Posted May 8, 2013 I think I've found a weird bug when setting a groups behaviour and having them get in then get out of a vehicle. Just wondering if this is known to anyone, or my code is structured wrong with the setBehaviour part.. Try this code in the local exec debug console... [] spawn { private ["_group", "_leader1", "_unit", "_vehicle", "_continue", "_boarded", "_disembarked"]; _group = createGroup east; _leader1 = _group createUnit ["O_Soldier_TL_F", getPos player, [], 0 , "NONE"]; for "_i" from 0 to (3) do { _unit = _group createUnit ["O_Soldier_F", getPos player, [], 0 , "NONE"]; }; _group setBehaviour "SAFE"; _vehicle = createVehicle ["O_Ifrit_F", getPos player, [], 0, "NONE"]; _group addVehicle _vehicle; units _group orderGetIn true; _continue = false; while { !_continue } do { _boarded = true; { if!(_x in _vehicle) then { _boarded = false; }; } forEach units _group; if(_boarded) then { _continue = true }; }; diag_log "ALL BOARDED"; sleep 2; _group leaveVehicle _vehicle; _continue = false; while { !_continue } do { _disembarked = true; { if(_x in _vehicle) then { _disembarked = false; }; } forEach units _group; if(_disembarked) then { _continue = true }; }; diag_log "ALL DISEMBARKED"; { diag_log format["%1 IS READY: %2", _x, unitReady _x]; } forEach units _group; }; The units unitReady will never go to true in this case. If you remove the line : _group setBehaviour "SAFE"; The units behave as expected.. anyone know if this is standard or is this an A3 bug I've stumbled across? Share this post Link to post Share on other sites