private["_pos","_timeout","_name","_missionID","_missionType","_missionObjects","_group","_box1","_camonet","_wreck","_hintString","_boxPos","_start","_units","_endCondition"]; /* Based Of drsubo Mission Scripts File: bCamp.sqf Author: Cammygames, drsubo Edited by KiloSwiss */ /* Update 27.03.2017 By [Ignatz] He-Man */ _pos = _this select 0; _name = _this select 1 select 1; _timeout = _this select 1 select 2; //Mission timeout _missionID = _this select 2; _missionType = _this select 3; _missionObjects = []; //-- _wreck = createVehicle ["Land_Device_disassembled_F",_pos,[], 0, "NONE"]; _missionObjects pushBack _wreck; _wreck setDir (random 360); _wreck setPos _pos; _camonet = createVehicle ["CamoNet_INDP_open_F",_pos,[], 0, "NO_COLLIDE"]; _missionObjects pushBack _camonet; _camonet setDir (getDir _wreck); _camonet setPos _pos; _boxPos = (_wreck modelToWorld [4,0,0]); _boxPos set [2,0]; _box1 = createVehicle ["Box_NATO_Wps_F", _boxPos, [], 0, "NO_COLLIDE"]; _missionObjects pushBack _box1; _box1 call SEM_fnc_emptyGear; _box1 setDir (getDir _wreck); _box1 setPos _boxPos; _group = [_pos,(6+(random 2))] call SEM_fnc_spawnAI; {_missionObjects pushBack _x}forEach units _group; [_group, _pos] call SEM_fnc_AImove; //[_group, _pos] spawn SEM_fnc_AIsetOwner; _hintString = "Mission
Device discovered!

______________

A nuclear device has been discovered
Remove the device and enemies as soon as possible!"; [0,_hintString] remoteexec ["SEM_Client_GlobalHint",-2]; /* Mission End Conditions */ _start = time; _units = units _group; waitUntil{ sleep 5; _endCondition = [_pos,_units,_start,_timeout,_missionID,[_box1]]call SEM_fnc_endCondition; (_endCondition > 0) }; SEM_globalMissionMarker = [false,_endCondition,_missionID,_missionType]; SEM_globalMissionMarker call SEM_createMissionMarker; if(_endCondition == 3)then[{ //Win! [_box1,1] call SEM_fnc_crateLoot; if(SEM_MissionCleanup > 0)then{[_pos, _missionObjects] call SEM_fnc_missionCleanup}; _hintString = "Mission success
______________

All bandits have been defeated!"; [_endCondition,_hintString] remoteexec ["SEM_Client_GlobalHint",-2]; },{ // 1 or 2 = Fail {deleteVehicle _x; sleep .1}forEach _missionObjects; _hintString = "Mission FAILED"; [_endCondition,_hintString] remoteexec ["SEM_Client_GlobalHint",-2]; }]; deleteGroup _group;