Jump to content
Sign in to follow this  
lonewolf12

Scripts in multiplayer executing for every player (need it to just execute once...)

Recommended Posts

Finally fired up my game mode that i have being working on all day (most of which was looking for answers on scripting language lol) and it is executing the script every time for each person who is in the multiplayer room!

any ideas on this, im sure its a common thing ( i hope)

he is the script that is being exec when a trigger goes off

_j = i;

while {_j > 0} do {

_group = [getMarkerPos "mark1", EAST, ["O_Soldier_TL_F"]] call BIS_fnc_spawnGroup;
_wp = _group addWaypoint [getMarkerPos "mark2", 5];
_wp setWaypointType "MOVE";  


_j = _j - 1;};

i = i + 1;
h = i - 1;
hint format ["Level %1",h];

would really appreciate any tips on how to tackle this, it might be simple it might be complex i have no idea lol

Share this post


Link to post
Share on other sites

You can put isServer on the trigger's condition, so only the server goes through it.

So if the trigger's condition field now reads "this", try "this && isServer"

Share this post


Link to post
Share on other sites

thanks of your reply! gona go try this now

---------- Post added at 11:12 ---------- Previous post was at 10:23 ----------

seems to have done the trick

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×