OSMOX Posted June 2, 2017 Report Share Posted June 2, 2017 Trying to figure out how to make the ai patrols delete on mission complete on the DZMS that BetterDeadThanZed did. This is whats int the mission.. //Spawn patrol _patrol = ["patrol"] call DZMSGetVeh; [_coords,[(_coords select 0) + 30, (_coords select 1) + 30, 0],150,2,_patrol,31] call DZMSVehiclePatrol; End of mission diag_log text format["[DZMS]: Major SM1 %1 Mission has Ended.", _missName]; deleteMarker "DZMSMajMarker"; deleteMarker "DZMSMajDot"; trying to add in delete of patrol veh as soon as the mission ends Link to comment Share on other sites More sharing options...
0 TheVampire Posted June 2, 2017 Report Share Posted June 2, 2017 { if !(isplayer _x) then { deleteVehicle _x; }; } foreach (crew _patrol); deleteVehicle _patrol; That should do it. If the AI dismount it won't get them though. Relentless 1 Link to comment Share on other sites More sharing options...
Question
OSMOX
Trying to figure out how to make the ai patrols delete on mission complete on the DZMS that BetterDeadThanZed did.
This is whats int the mission..
//Spawn patrol
_patrol = ["patrol"] call DZMSGetVeh;
[_coords,[(_coords select 0) + 30, (_coords select 1) + 30, 0],150,2,_patrol,31] call DZMSVehiclePatrol;
End of mission
diag_log text format["[DZMS]: Major SM1 %1 Mission has Ended.", _missName];
deleteMarker "DZMSMajMarker";
deleteMarker "DZMSMajDot";
trying to add in delete of patrol veh as soon as the mission ends
Link to comment
Share on other sites
1 answer to this question
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now