Human_Tanks 1 Posted March 26, 2013 (edited) sorry this may have been posted over 9000 times but i will still have to ask sleep 60; _Marker1 = createMarker ["M1", getpos de11]; "M1" setMarkerShape "RECTANGLE"; "M1" setMarkerColor "ColorRed"; "M1" setMarkerSize [500, 500]; "M1" setMarkerBrush "DiagGrid"; aa3=createTrigger["EmptyDetector",getPos de111]; aa3 setTriggerArea[500,500,0,true]; aa3 setTriggerActivation["ANY","PRESENT",true]; aa3 setTriggerStatements["this", "{_x setDamage 1} foreach thisList;", ""]; sleep 60; _Marker1 = createMarker ["M1", getpos de112]; "M1" setMarkerShape "RECTANGLE"; "M1" setMarkerColor "ColorRed"; "M1" setMarkerSize [500, 500]; "M1" setMarkerBrush "DiagGrid"; aa3=createTrigger["EmptyDetector",getPos de113]; aa3 setTriggerArea[500,500,0,true]; aa3 setTriggerActivation["ANY","PRESENT",true]; aa3 setTriggerStatements["this", "{_x setDamage 1} foreach thisList;", ""]; this is the code every time i use it it just makes the first marker and kill zone right away, and it will never make the next ones duse any one have a better way of doing this or wear am i messing up with this. Edited March 26, 2013 by Human_Tanks Share this post Link to post Share on other sites
jacmac 2 Posted March 26, 2013 Why don't you set up a delay that shows you the delay so you can tell for sure when statements are being executed: _c = 0; while {_c < 6 } do { sleep 10; _c = _c + 1; systemChat ("_c=" + (str _c)); }; If you put that in place of your sleeps and can see other actions in the same script block executing before it's completed, then there is something weird going on with the script processing. Share this post Link to post Share on other sites
Human_Tanks 1 Posted March 26, 2013 (edited) ok i will see what happens. thank you ---------- Post added at 18:28 ---------- Previous post was at 18:08 ---------- so i used the above and it still runs the next part right away with no delay at all Edited March 26, 2013 by Human_Tanks Share this post Link to post Share on other sites
Tuliq 2 Posted March 26, 2013 I don't think you can have two markers with the same name. Marker names needs to be unique. Share this post Link to post Share on other sites
Tisor 17 Posted March 26, 2013 Yes, you should add, after the second sleep 60: deleteMarker "M1"; deleteVehicle "EmptyDetector"; Share this post Link to post Share on other sites
Human_Tanks 1 Posted March 26, 2013 _c = 0; while {_c < 6 } do { sleep 10000; _c = _c + 1; systemChat ("_c=" + (str _c)); }; _Marker1 = createMarker ["M1", getpos de11]; "M1" setMarkerShape "RECTANGLE"; "M1" setMarkerColor "ColorRed"; "M1" setMarkerSize [500, 500]; "M1" setMarkerBrush "DiagGrid"; aa1=createTrigger["EmptyDetector",getPos de11]; aa1 setTriggerArea[500,500,0,true]; aa1 setTriggerActivation["ANY","PRESENT",true]; aa1 setTriggerStatements["this", "{_x setDamage 1} foreach thisList;", ""]; _c = 0; while {_c < 6 } do { sleep 10000; _c = _c + 2; systemChat ("_c=" + (str _c)); }; _Marker2 = createMarker ["M2", getpos de111]; "M2" setMarkerShape "RECTANGLE"; "M2" setMarkerColor "ColorRed"; "M2" setMarkerSize [500, 500]; "M2" setMarkerBrush "DiagGrid"; aa2=createTrigger["EmptyDetector",getPos de111]; aa2 setTriggerArea[500,500,0,true]; aa2 setTriggerActivation["ANY","PRESENT",true]; aa2 setTriggerStatements["this", "{_x setDamage 1} foreach thisList;", ""]; oh yes i fixed that later still have the zero delay even after having a long sleep Share this post Link to post Share on other sites
jacmac 2 Posted March 26, 2013 Just so I understand, you are saying that the markers and triggers get created and show up immediately after the script starts and while the delay messages are showing up? If so, I can not imagine what is causing that. Could you zip up your mission and post it? I would like to understand how it could be happening. Share this post Link to post Share on other sites
Human_Tanks 1 Posted March 26, 2013 (edited) yep i can do all that just give me a sec ---------- Post added at 13:21 ---------- Previous post was at 13:10 ---------- The editor mission just use the alpha redio to start the script everything there is for me to screw around with ---------- Post added at 13:27 ---------- Previous post was at 13:21 ---------- at the top of the map you will see the grid place for cargo box de11 and de11_1 wich is all the script effects at the time, as soon soon as you use radio alpha the script runs and it makes both M1 and M2 makers and triggers Edited March 26, 2013 by Human_Tanks Share this post Link to post Share on other sites
cobra4v320 27 Posted March 27, 2013 (edited) You saved it as an sqs file and not an sqf file. :j: You are also calling the script incorrectly. _null = [] execVM "deadzone.sqf" Edited March 27, 2013 by cobra4v320 Share this post Link to post Share on other sites
Human_Tanks 1 Posted March 28, 2013 sigh way did it have to be something so simple way so simple. well thank you so much really. just a little more work/a lot more work till i can finally release the first version of my game mode idea Share this post Link to post Share on other sites