Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
documents\ Arma3\ mpmissions\ your mission folder
if you want it as SP mission save them in the "mission" folder
Put the init file next to the mission.sqm file, when you start your mission, the script start automaticly!
I publish it in case it may interest someone. I have added task number 6 that works by position on the map (11412.20620.8), so that invisible markers can be avoided. This code includes four different options: Task 1 by object position on the map, task 2 and 3 by position of enemy unit with name on the map (unit_1 - unit_2), tasks 4 and 5 by invisible marker and task 6 by positioning in the map.
VERFIFIED CODE ON DEDICATED SERVER FOR MULTIPLAYER
if (!isServer) exitWith {};
0 = [] spawn {
sleep 1;
0 = [] spawn {
[west,["task1"],["Go to the area and destroy enemy artillery","Go to the area and destroy enemy artillery",""], getPosATL arty_1 ,1,2,true,"destroy"] call BIS_fnc_taskCreate;
waitUntil{!(alive arty_1)};
["task1", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
};
waitUntil{!(alive arty_1)};
[west,["task2"],[format[" Go to the area and kill two officers %1",name unit_1],format[" Go to the area and kill two officers %1",name unit_1],""], getPosATL unit_1,1,2,true,"kill"] call BIS_fnc_taskCreate;
waitUntil{!(alive unit_1)};
["task2", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
[west,["task3"],[format[" Go to the area and kill two officers %1",name unit_2],format[" Go to the area and kill two officers %1",name unit_2],""], getPosATL unit_2,1,2,true,"kill"] call BIS_fnc_taskCreate;
waitUntil{!(alive unit_2)};
["task3", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
[west,["task4"],["Grab intel","Grab intel",""], getMarkerPos "marker_0" ,1,2,true,"move"] call BIS_fnc_taskCreate;
waitUntil{sleep 1;(({isPlayer _x && _x distance (getMarkerPos "marker_0") < 5} count playableUnits > 0));};
["task4", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
[west,["task5"],["Exfill at the base ","Exfill at the base ",""], getMarkerPos "marker_1" ,1,2,true,"move"] call BIS_fnc_taskCreate;
waitUntil{sleep 1;(({isPlayer _x && _x distance (getMarkerPos "marker_1") < 5} count playableUnits > 0));};
["task5", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
_markerstr = createMarker ["marker_2",[11412,20620.8]];
_markerstr setMarkerShape "ICON";
[west,["task6"],["Exfill at the base ","Exfill at the base ",""], getMarkerPos "marker_2" ,1,2,true,"move"] call BIS_fnc_taskCreate;
waitUntil{sleep 1;(({isPlayer _x && _x distance (getMarkerPos "marker_2") < 5} count playableUnits > 0));};
["task6", "SUCCEEDED",true] spawn BIS_fnc_taskSetState;
};