Jump to content
Sign in to follow this  
thecoolsideofthepillow

BIS_fnc_spawnGroup not working from Debug Console?

Recommended Posts

Whilst testing ideas to try and create markers randomly, I was trying to use BIS_fnc_spawnGroup to just place a single unit instead of a trigger; just to see if I have the correct method to get the positions I need.

 

What I found, however, was that the spawngroup function itself is not working, even when I just copy and paste the examples from the BIKI ([getMarkerPos "Marker", EAST, 5] call BIS_fnc_spawnGroup OR _grp = [getMarkerPos "Marker", EAST, 5] call BIS_fnc_spawnGroup). It simply will not create any units.

 

 Just to make sure it wasn't from not having a center or from using it in the debug console, I also tried using createCenter as well as going back into the editor and placing down 1 unit of each side and also tried from the init line of the player's unit. Still nada.

 

EDIT: It seems I have to use the config method (_group1 = [getPos player, side player, (configfile >> "CfgGroups" >> "West" >> "BLU_F" >> "Infantry" >> "BUS_InfSquad")] call BIS_fnc_spawnGroup;) and I had to restart the game for even that to work. Maybe it just didn't load the function/configs properly (been happening a lot where weapons show up in the incorrect place, like handguns being used as primary weapons).

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  

×