R34P3R 11 Posted February 15, 2015 Hey Guys. i have a little problem with my Task creation order. If i play SP or Preview in Editor the tasks order will be right. But if i host a game or launch a the mission on dedicated server, the tasks will random mixed on briefing scrren. hope somebody can help me. Thanks if(!isServer) exitWith {}; [ west, "missionTask", ["BLABLA PRIMARY TASK", "Main mission:", ""], nil, "CREATED",0,false ] call BIS_fnc_taskCreate; waitUntil {["missionTask"] call BIS_fnc_taskExists }; [ west, ["gearTask", "missionTask"], ["BLABLA SUB TASK 1", "Get your gear", ""], nil, "CREATED",10,false ] call BIS_fnc_taskCreate; waitUntil {["gearTask"] call BIS_fnc_taskExists }; [ west, ["getInCarTask", "missionTask"], ["BLABLA SUB TASK 2", "Walk to car", "GET IN"], getMarkerPos "join_marker", "CREATED",9,false ] call BIS_fnc_taskCreate; waitUntil {["getInCarTask"] call BIS_fnc_taskExists }; i run the Script on Serverside only because the Tasks will transfered to the clients. i also tryed a little delay on the waitUntil command: waitUntil {sleep 0.1; ["missionTask"] call BIS_fnc_taskExists }; But then only the first Task will created on briefing screen, the other will loaded after player spawn. Thanks a lot guys. Share this post Link to post Share on other sites
Guest Posted February 15, 2015 (edited) Hmmm, i heard somewhere that you only use exitwith in a loop, it may cause havoc, maybe try something else to check wether it's the server? only use it to exit a loop, not a script. Edited February 15, 2015 by Guest Share this post Link to post Share on other sites
jshock 513 Posted February 15, 2015 Hmmm, i heard somewhere that you only use exitwith in a loop, it may cause havoc, maybe try something else to check wether it's the server? only use it to exit a loop, not a script. Techincally correct, proper wordage (at least from the wiki) is that its behavior is undefined when exiting a script, however, at this point at least from what I've seen (and sometimes used myself out of laziness) it doesn't cause any (many) issues. And back to Reaper, maybe try messing with the priority parameter to see if that helps or not. Share this post Link to post Share on other sites
R3vo 2654 Posted February 15, 2015 I think I read somewhere, that there is no way to change the order of task in the briefing screen. Share this post Link to post Share on other sites
austin_medic 109 Posted February 16, 2015 I think I read somewhere, that there is no way to change the order of task in the briefing screen. Thats correct. they only pop up in the order they are created. The priority number only sets up how fast that task will become assigned after the current task is complete (if theres > a few, otherwise it does nothing from what I've seen). Share this post Link to post Share on other sites