Jump to content
JVez

BIS_fnc_spawnGroup + playable

Recommended Posts

Hello. I am trying to create a group of ai that will be playable for the player.

 

_rifleman1v = [getMarkerPos "Germanzone1", side player, ["LIB_GER_unterofficer", "LIB_GER_rifleman", "LIB_GER_medic", "LIB_GER_AT_grenadier", "LIB_GER_rifleman", "LIB_GER_rifleman", "LIB_GER_rifleman", "LIB_GER_rifleman"]] call BIS_fnc_spawnGroup;
     

Is there a way to make them playable for the blufor player?

Share this post


Link to post
Share on other sites

Try this:

 

{addSwitchableUnit _x}forEach _rifleman1v;

Share this post


Link to post
Share on other sites

{addSwitchableUnit _x} * forEach _rifleman1v;

 

 

 

error *

Share this post


Link to post
Share on other sites

this is for a multiplayer map.

Share this post


Link to post
Share on other sites

I tested this,

 

_rifleman1v = [getMarkerPos "Germanzone1", side player, ["LIB_GER_unterofficer", "LIB_GER_rifleman", "LIB_GER_medic", "LIB_GER_AT_grenadier", "LIB_GER_rifleman", "LIB_GER_rifleman", "LIB_GER_rifleman", "LIB_GER_rifleman"]] call BIS_fnc_spawnGroup;
     player hcSetGroup [_rifleman1v];
     _rifleman1v setGroupId ["Rifleman 1"];
     {addSwitchableUnit _x}forEach _rifleman1v;

 

I have an error here.

 

 {addSwitchableUnit _x}/*/forEach _rifleman1v;

 

 

I have an error here. I would like it to be playable at their appearance.

Share this post


Link to post
Share on other sites

BIS_fnc_spawnGroup returns a group .....

_grp = ...... call BIS_fnc_spawnGroup ;

{ .... } forEach (units _grp); 

 

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

×