Jump to content
Sign in to follow this  
Absolution_15th

Spawn Script breaks in MP

Recommended Posts

Problem: I have a spawn script that drops a group of bad guys on the map when I activate a trigger. It works in SP, it works on a dedicated server WHEN I AM ALONE but stops working when anyone joins the server.

The script executes in all three scenarios above because I have a hint that flashes on the screen. When other players are on the server I get the hint message but no bad guys spawn. Ideas?

Trigger on act (manually activated by the player):

jester = thislist select 0; if (jester == opcom) then {actionid10 = opcom addAction ["Spawn Group 1", "scripts\spawnai\group1.sqf"];  actionid11 = opcom addAction ["Spawn Group 2", "scripts\spawnai\group2.sqf"];  actionid12 = opcom addAction ["Spawn Group 3", "scripts\spawnai\group3.sqf"];  actionid13 = opcom addAction ["Spawn Group 4", "scripts\spawnai\group4.sqf"];};

group1.sqf (group 2, 3 and 4 are identical):

waituntil {!isnil "bis_fnc_init"};


//create a trigger
//On Act: [this] exec "scripts\spawnai\group#.sqf";
//alternate: _h = []execVM "scripts\spawnai\group#.sqf";

//create groups
_group1 = [getMarkerPos"spwn1", east, ["TK_Soldier_Night_2_EP1","TK_Soldier_Night_2_EP1","TK_Soldier_Night_2_EP1","TK_Soldier_Night_2_EP1","TK_Soldier_Night_2_EP1"]] call BIS_fnc_spawnGroup;

//set patrol points
[_group1, getMarkerPos "wp1",75 ] call bis_fnc_taskPatrol;
[_group1, 1] setWaypointSpeed "FAST";

hint format ["Group 1"];

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  

×