Search the Community
Showing results for tags 'scriting'.
Found 1 result
-
scriting Conditional in mision server
redburn posted a topic in ARMA 3 - MISSION EDITING & SCRIPTING
Hi all: I have been doing missions where always in the initServer.sqf I do conditionals for missions in the following way: initServer.sqf private _run = true; private _files = datosInfo; // files private _doc_adquirido = true; //notifications documents adquires objetivoSecundario = 0; publicVariable "objetivoSecundario"; //Markers _mrk1 = createMarker ["mrk1", icon1]; //Creation Marker _mrk2 = createMarker ["mrk2", icon2]; //Creation Marker _mrk3 = createMarker ["mrk3", icon3]; //Creation Marker _mrk4 = createMarker ["mrk4", icon4]; //Creation Marker while {_run} do { //Mision One if (!alive _files && _doc_adquirido ) then { objetivoSecundario = objetivoSecundario + 8; publicVariable "objetivoSecundario"; ["objSecond", ["Members Add 8 PTS!"]] remoteExecCall ["BIS_fnc_showNotification"]; //Markers _mrk1 setMarkerShape "ICON"; _mrk1 setMarkerType "mil_unknown"; "mrk1" setMarkerColor "ColorWEST"; //"mrk1" setMarkerText "Conseguir Archivos."; _mrk2 setMarkerShape "ICON"; _mrk2 setMarkerType "mil_unknown"; "mrk2" setMarkerColor "ColorWEST"; //"mrk2" setMarkerText "Conseguir Archivos."; _mrk3 setMarkerShape "ICON"; _mrk3 setMarkerType "mil_unknown"; "mrk3" setMarkerColor "ColorWEST"; //"mrk3" setMarkerText "Conseguir Archivos."; _mrk4 setMarkerShape "ICON"; _mrk4 setMarkerType "mil_unknown"; "mrk4" setMarkerColor "ColorWEST"; //"mrk4" setMarkerText "Conseguir Archivos."; _doc_adquirido = false; }; //END MISSION CONDITIONAL. }; //END WHILE But now I realize that in a bad way I'm doing it wrong, because the server will stay working only that conditional, leaving aside any process that is part of this, since additional scripts for the server do not work for me when I use the while and until the process finishes, but is there another way to execute a conditional when it is fulfilled in initServer.sqf without using while? to make the server continue to work on other scripts and not make a practically infinite loop?