2016-07-24 07:57:58 +00:00
|
|
|
_group = _this select 0;
|
|
|
|
_vehicle = _this select 1;
|
2016-07-24 08:09:11 +00:00
|
|
|
_playerno = _this select 2;
|
|
|
|
|
|
|
|
diag_log format["ejectSquad called, _this: %1", _this];
|
|
|
|
|
|
|
|
if (!(ferryingArray select _playerno)) exitWith {};
|
|
|
|
|
2016-07-24 07:57:58 +00:00
|
|
|
|
|
|
|
deleteWaypoint [_group,1];
|
|
|
|
|
|
|
|
{_x action["eject", vehicle _x]} forEach units _group;
|
|
|
|
{unAssignVehicle _x} forEach units _group;
|
|
|
|
{_x enableAI "TARGET"; _x enableAI "AUTOTARGET";} foreach units _group;
|
|
|
|
|
|
|
|
wp = _group addwaypoint [lz1,5,1];
|
|
|
|
wp setwaypointType "MOVE";
|
|
|
|
|
2016-07-24 08:09:11 +00:00
|
|
|
ferryingArray set [_playerno, false];
|
|
|
|
publicVariable "ferryingArray";
|