JVez 2 Posted June 3, 2018 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
phronk 895 Posted June 3, 2018 Try this: {addSwitchableUnit _x}forEach _rifleman1v; Share this post Link to post Share on other sites
JVez 2 Posted June 3, 2018 {addSwitchableUnit _x} * forEach _rifleman1v; error * Share this post Link to post Share on other sites
JVez 2 Posted June 3, 2018 this is for a multiplayer map. Share this post Link to post Share on other sites
JVez 2 Posted June 3, 2018 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
PixeL_GaMMa 31 Posted June 4, 2018 BIS_fnc_spawnGroup returns a group ..... _grp = ...... call BIS_fnc_spawnGroup ; { .... } forEach (units _grp); Share this post Link to post Share on other sites
KC Grimes 79 Posted June 5, 2018 Also note that addSwitchableUnit is SP only, and the MP equivalent is not functional. Share this post Link to post Share on other sites