Jump to content
Sign in to follow this  
1para{god-father}

BIS_fnc_spawnGroup on Dedi

Recommended Posts

I am using the below code which I thought would spawn in 4 vehicles, however it seems to spawn in a lot more, I am running this on a dedi server and was testing with a few players, is it because it runs it on every PC so it is spawning them in for each player?

Or am i missing something ?

From a trigger i am calling the script.

spawnveh1.sqf

_grp2 = [getMarkerPos "taskarmour2", east,["UAZ_AGS30_RU", "UAZ_AGS30_RU","BMP3","GAZ_Vodnik"]] call BIS_fnc_spawnGroup;
[(units _grp2) select 0, "marker_jav","random","nofollow","spawned","delete:",200] execVM "scripts\upsmon.sqf";

Share this post


Link to post
Share on other sites

Hi...

Stuff like that (with global effects) needs to be executed on the server only. Otherwise each client + server will create the vehicles.

[b][color="DarkOrange"]if (isServer) then {[/color][/b]
_grp2 = [getMarkerPos "taskarmour2", east,["UAZ_AGS30_RU", "UAZ_AGS30_RU","BMP3","GAZ_Vodnik"]] call BIS_fnc_spawnGroup;

[(units _grp2) select 0, "marker_jav","random","nofollow","spawned","delete:",200] execVM "scripts\upsmon.sqf";
[color="DarkOrange"][b]};[/b][/color]

Please take a look at this and that. :)

Edited by sxp2high

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  

×