Jump to content
Sign in to follow this  
igneous01

Error or Bug? cannot Spawn group of GUE

Recommended Posts

I tested this code inside a trigger, and it does not work:

GRP = [getpos S3, Resistance, (configFile >> "CfgGroups" >> "GUER" >> "GUE" >> "Infantry" >> "GUE_InfTeam_1")] call BIS_fnc_spawnGroup

it works when I change it to east or west, but apparently GUE groups cant be spawned? Is the side name different?

I tried to spawn GUE in RUIS, and it did the exact same thing - creates groups, but no actual units are created.

Is this a bug? or is it an error on my part?

just tried it again like this:

GRP = [getpos S3, side player, (configFile >> "CfgGroups" >> str (side player) >> (faction player) >> "Infantry" >> "USMC_FireTeam")] call BIS_fnc_spawnGroup

it works like this, but when I change the group type to one of the GUE group types, nothing happens, no error in rpt either. What gives?

Edit again:

It seems like there is a missing config entry with gue faction, or that the side is messed up in config. This shows nothing:

hint format ["%1", configName (configFile >> "CfgGroups" >> str (side player) >> (faction player) >> "Infantry")]

where If i switch to usmc or ru it does actually show the config name.

Edited by Igneous01

Share this post


Link to post
Share on other sites

Here is a part from my working spawn script:

if (_side == RESISTANCE) then {
_group = [_pos, _side,  (configFile >> "CfgGroups" >> "Guerrila" >> _faction >> "Infantry" >> _name)] call BIS_fnc_spawnGroup; 
} else {
_group = [_pos, _side,  (configFile >> "CfgGroups" >> (str _side) >> _faction >> "Infantry" >> _name)] call BIS_fnc_spawnGroup;
};

I think its the "Guerrila" that you missed.

Share this post


Link to post
Share on other sites

yup, I found it the hard way digging through the config.

However this is a potential problem because the string of Resistance is "GUER", so when you try to get the string of the side using str side unit, it returns the wrong side string. So for my RUIS script, I shall have to add a check to change the side string to guerrila if guerrila units are going to be spawned, which seems pointless to me.

but thanks for the reply ;)

Share this post


Link to post
Share on other sites

It does seem like they stuck in an extra command on the resistance side.

sidew = West

sideE = East

sideG = Resistance

factionW = ["USMC","CDF","BIS_US","BIS_CZ","BIS_GER","BIS_BAF"];

factionE = ["RU","INS","BIS_TK","BIS_TK_INS"];

factionG = ["GUE","BIS_TK_GUE","BIS_UN","PMC_BAF"];

So where do Guerrila / Guer fit in?

Edited by F2k Sel

Share this post


Link to post
Share on other sites

GRP = [getpos S3, Resistance, (configFile >> "CfgGroups" >> "Guerrila" >> "GUE" >> "Infantry" >> "GUE_InfTeam_1")] call BIS_fnc_spawnGroup;

This should work. Of course the Functions Module needs to be placed in the editor.

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  

×