f3cuk / WICKED-AI

Wicked AI missions for your server
30 stars 59 forks source link

Static para fix #85

Closed SJossy closed 10 years ago

SJossy commented 10 years ago

not tested yet, should work but

f3cuk commented 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.

SJossy commented 10 years ago

true, well if you're going to try change it look at [_pgroup, _position,_mission] call group_waypoints; too :)

f3cuk commented 10 years ago

Yeah the group_waypoint actually does nothing with mission anymore. I simplified that a few days back and forgot about changing the calls.

f3cuk commented 10 years ago

Think db04c19e7f2ba727a7feb83b9a594ac1605343ab should fix it. Needs testing though.

SJossy commented 10 years ago

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

f3cuk commented 10 years ago
    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]; }; };