2016-04-06 10:29:59 +00:00
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: Initialised at %1",time];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
|
|
|
|
|
|
|
{
|
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: Air: %1 is active",_x];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
|
|
|
_x setFuel 1;
|
|
|
|
sleep 5;
|
2016-04-13 12:02:59 +00:00
|
|
|
_originalSpawnLocation = _x getVariable "SC_vehicleSpawnLocation";
|
|
|
|
_pos = position _x;
|
|
|
|
_nearestMarker = [allMapMarkers, _pos] call BIS_fnc_nearestPosition; // Nearest Marker to the Location
|
|
|
|
_posNearestMarker = getMarkerPos _nearestMarker;
|
|
|
|
if(_pos distance _posNearestMarker < 750) then
|
|
|
|
{
|
|
|
|
_GroupLeader = leader (group _x);
|
|
|
|
_GroupLeader doMove _originalSpawnLocation;
|
|
|
|
};
|
2016-04-06 10:29:59 +00:00
|
|
|
}forEach SC_liveHelisArray;
|
|
|
|
|
|
|
|
{
|
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: Land: %1 is active",_x];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
|
|
|
_x setFuel 1;
|
2016-04-10 14:42:45 +00:00
|
|
|
[_x] call SC_fnc_comeUnstuck;
|
2016-04-06 10:29:59 +00:00
|
|
|
sleep 5;
|
|
|
|
}forEach SC_liveVehiclesArray;
|
|
|
|
|
|
|
|
{
|
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: Sea: %1 is active",_x];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
|
|
|
_x setFuel 1;
|
2016-04-10 14:42:45 +00:00
|
|
|
[_x] call SC_fnc_comeUnstuck;
|
2016-04-06 10:29:59 +00:00
|
|
|
sleep 5;
|
|
|
|
}forEach SC_liveBoatsArray;
|
|
|
|
|
2016-04-11 12:59:33 +00:00
|
|
|
{
|
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: publicBus: %1 is active",_x];
|
|
|
|
[_logDetail] call SC_fnc_log;
|
|
|
|
_x setFuel 1;
|
|
|
|
[_x] call SC_fnc_comeUnstuck;
|
|
|
|
sleep 5;
|
|
|
|
}forEach SC_publicBusArray;
|
|
|
|
|
2016-04-06 10:29:59 +00:00
|
|
|
_logDetail = format ["[OCCUPATION:Unstick]:: Finished at %1",time];
|
|
|
|
[_logDetail] call SC_fnc_log;
|