Jump to content
Sign in to follow this  
GUBA2005

Cannot spawn east units via script

Recommended Posts

Hello, I am looking for a help. Recently I was looking for some scripts to spawn groups. I ended up finding this one on one of the topic:

Quote

_grp = createGroup west;

_pos = getpos player;

_unit1 = _grp createUnit ["USMC_Soldier_SL", _pos, [], 100, "FORM"];

_unit2 = _grp createUnit ["USMC_Soldier", _pos, [], 100, "FORM"];

_unit3 = _grp createUnit ["USMC_Soldier_MG", _pos, [], 100, "FORM"];

_unit4 = _grp createUnit ["USMC_Soldier_Medic", _pos, [], 100, "FORM"];

Then I spawned it via suggested trigger activation:

Quote

dumvar = [] execVM "spawn.sqf" 

It worked perfectly, but I wanted to spawn enemy group, so what I did was I changed it for my mission to this:

Quote

_grp = createGroup east;
_pos = getpos MARK1;
_unit1 = _grp createUnit ["INS_Soldier_1", _pos, [], 10, "FORM"];
_unit2 = _grp createUnit ["INS_Soldier_1", _pos, [], 10, "FORM"];
_unit3 = _grp createUnit ["INS_Soldier_2", _pos, [], 10, "FORM"];
_unit4 = _grp createUnit ["INS_Soldier_2", _pos, [], 10, "FORM"];

It didn't spawned units, so I had to tear it down from start. I found out that everything worked, except the "east", because when I changed it back to "west" it worked again. 

Can somebody please tell me how to make this script work? 

Ps: I know that there is BIS_fnc_spawnGroup, but I would prefer this script, if you don't mind

Share this post


Link to post
Share on other sites

take a look at this video, also in the description you will see the script code
 

 

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  

×