Closed SJossy closed 10 years ago
Don't think it will. The second argument will still produce the error (line 263 also produces it). Need to nest them i think.
if(!isNil "_mission") then {
_missionrunning = (typeName (wai_mission_data select _mission) == "ARRAY");
if(!_missionrunning) exitWith { if(debug_mode) then { diag_log format["WAI: Mission at %1 already ended, aborting para drop",_position]; }; };
};
But not sure if the exitWith will then exit the script or the only the current if scope it is in.
true, well if you're going to try change it look at [_pgroup, _position,_mission] call group_waypoints; too :)
Yeah the group_waypoint actually does nothing with mission anymore. I simplified that a few days back and forgot about changing the calls.
Think db04c19e7f2ba727a7feb83b9a594ac1605343ab should fix it. Needs testing though.
might just need to bring the if(!_missionrunning) exitWith { outside of the if statement or it's just going to exit that and keep the script going
if(!isNil "_mission") then {
_missionrunning = (typeName (wai_mission_data select _mission) == "ARRAY");
} else {
_missionrunning = false;
};
if(!_missionrunning) exitWith { if(debug_mode) then { diag_log format["WAI: Mission at %1 already ended, aborting para drop",_position]; }; };
not tested yet, should work but