gnosis 0 Posted May 28, 2007 I'm hoping someone here can shed some light on something that is driving me to excessive drinking. I'm trying to create triggers through scripts but I can't for my life get them to act the way that I'm expecting them to do. I use createTrigger to set a trigger for scoring on a SC type map. When it is activated a script starts a loop that gives a score at predetermined intervals and titleText some info. If I create the trigger on server local, it triggers but it does not propagate through the network, ie. the titleText is not showing to clients. If I create the trigger on clients only, it works fine when I'm testing the script alone. But as soon as a second client connects the triggers multiply and the scoring script starts running twice. First I created the triggers as private vars and thought that might be an issue so I did global vars on each trigger. Same issue. if (!local server) then { trig = createTrigger["EmptyDetector", getMarkerPos "Flag1"]; <snip> trig setTriggerStatement["this && gameover != 1", "execVM 'scoring.sqf'; titleText['Sector 1 captured', 'PLAIN'];", ""]; }; Taking away the !local server condition will result in "Sector 1 captured" not being shown to clients. Any help appreciated, g_n_o_s_i_s Share this post Link to post Share on other sites
fasad 1 Posted May 28, 2007 I'm pretty sure that titleText has a local only effect. Change the score on the server only, display the titleText on the clients only. Share this post Link to post Share on other sites