Valixx 11 Posted September 21, 2013 If anyone could help me out that would be awesome. /* ================================================================================================================== Begin creating the tasks ================================================================================================================== */ /*========== Creating the first task ==========*/ //Private needed for mp? private ["_missionName", "_missionDesc", "_marker", "_markerEOS", "_markerTown", "_markerCap", "_markerAirfield", "_taskhandle"]; //DEFINING SOME THINGS _missionName = format ["Clear Town Telos"]; _missionDesc = format ["Clear the Town Telos from all opfor soldiers. Approach with caution though, according to the Intel they got heavy armor."]; _markerEOS = format ["town_telos_eos"]; _markerTown = ["town_telos", "town_agira", "town_charkia"] call BIS_fnc_selectRandom; _markerCap = ["town_name1", "town_name2", "airfield_name1", "airfield_name2", "cap_name1", "cap_name2"] call BIS_fnc_selectRandom; _markerAirfield = ["town_name1", "town_name2", "airfield_name1", "airfield_name2", "cap_name1", "cap_name2"] call BIS_fnc_selectRandom; //CREATING THE MARKER _marker = createMarker [_markerEOS, getMarkerPos _markerTown]; _marker setMarkerShape "ELLIPSE"; _marker setMarkerColor "default"; _marker setMarkerSize [150,150]; //WAITING FOR THE PLAYER TO SPAWN sleep 10; // TASK AND NOTIFICATION _taskhandle = player createSimpleTask ["taskTownTelos"]; _taskhandle setSimpleTaskDescription [_missionDesc, "MM: Clear the Town Telos", "MM: Clear the Town Telos"]; _taskhandle setSimpleTaskDestination (getMarkerPos _markerEOS); player setCurrentTask _taskhandle; //SHOW NOTIFICATION ["TaskReceivedMM",["",_missionName]] call bis_fnc_showNotification; //CALL EOS Script null = [[_markerEOS],[0,0],[0,0],[0,0],[1,1],[0,0,0],[0,0,150,EAST]] call EOS_Spawn; //SOME SIDECHAT FOR THE TASK PAPABEAR=[West,"HQ"]; PAPABEAR SideChat "We got Intel that the enemy is hiding in Telos. Approach with caution and eliminate everyone. Papabear out!"; //WAIT UNTIL THE MARKER COLOR IS GREEN, THEN... waitUntil {sleep 2; getMarkerColor _markerEOS == "ColorGreen"}; //...SET THE TASK STATE TO SUCCEEDED AND SHOW NOTIFICATION _taskhandle setTaskState "Succeeded";["taskFinishedMM",["",_missionName]] call bis_fnc_showNotification; //DELETE THE MARKER AFTER THE TASK IS FINISHED deleteMarker _marker; //CREATE AND ASSIGN THE SECOND TASK - seperated into files for better usability execVM "ADG\missions\task2.sqf"; Share this post Link to post Share on other sites