Comrades in Arms Discussion Board
Trigger issue since eden release - Printable Version

+- Comrades in Arms Discussion Board (http://forum.ciahome.net)
+-- Forum: Comrades in Arms Life (http://forum.ciahome.net/forumdisplay.php?fid=3)
+--- Forum: Mission Making (http://forum.ciahome.net/forumdisplay.php?fid=8)
+--- Thread: Trigger issue since eden release (/showthread.php?tid=3315)



Trigger issue since eden release - treendy - 03-02-2016

Hello,


I have tried to sort this, but need to reach out now.


Since the Eden release, triggers do not run for client when on a dedicated server... its an issue that has been fixed in Arma dev branch, just waiting for it to be published!


I have managed to work around this in most instances... however.... my issue is:


My final trigger, when tasks have been completed you swim out to extract... at this point you enter a final trigger that ends the game.... however, this trigger fires and runs on server, but all clients are still stuck in the game because the "end game" script needs to be run on all clients.


Can anyone suggest another way to end the mission... I was thinking of having a never ending loop that runs every 1 second and checks some global variables... then if (bMissionComplete = true) we tell client to end mission....


But before I go ahead and do this, I just want to check if anyone has a better solution.


Thanks for reading.


Re: Trigger issue since eden release - Alwarren - 03-02-2016

Well that is an easy thing to fix, if the trigger fires, just make it so:


if (isServer) then {
  ["end1", true] remoteExec ["BIS_fnc_endMission"]
};






Actually, for this specific case, there is an alternate solution:


if (isServer) then { ["everyonewon"] call BIS_fnc_endMissionServer; };


However, I wouldn't recommend using it, this function is not documented on the biki and the documentation in the function's header is wrong, so it might change.