SniPeZz_Qc 10 Posted January 22, 2015 Hi I want to make a mod (US Marines vs infected) when a infected kill a marine the marine (bluefor) auto change side to infected (civilian). I know it was possible 9 months ago but I think bohemia as remove this option.. Did someone have a idea ? Thanks you SnipeZz Share this post Link to post Share on other sites
Heeeere's johnny! 51 Posted January 22, 2015 First thing that comes to my mind is, you may create a unit of the respective other side, use selectPlayer on that unit - so the player becomes that unit - and then delete the old unit. Share this post Link to post Share on other sites
SniPeZz_Qc 10 Posted January 22, 2015 Yah that seems a good idea but if I do that I have to make more infected slot (civ) and when the player will join they will go infected (my game mode have to have only 1 infected at the start). I can make a condition that it will end mission for the client with a message that the infected is selected randomnly from the bluefor before the start. Sorry for my english english is not my first language. Share this post Link to post Share on other sites
bull_a 44 Posted January 22, 2015 to switch a player from friendly side to enemy side you can set them to join an enemy group e.g. // If friendly side is west _enemyGroup = createGroup east; player joinSilent _enemyGroup; // Joins player to enemy group 2 Share this post Link to post Share on other sites
SniPeZz_Qc 10 Posted January 22, 2015 Ok thank you I will check that Share this post Link to post Share on other sites
SniPeZz_Qc 10 Posted January 23, 2015 to switch a player from friendly side to enemy side you can set them to join an enemy groupe.g. // If friendly side is west _enemyGroup = createGroup east; player joinSilent _enemyGroup; // Joins player to enemy group I have try that but i have this error: private ["_enemyGroup"]; _enemyGroup = createGroup civilian; switch (playerSide) do { case civilian: { }; case independent: { player joinSilent _enemyGroup; }; }; http://i.imgur.com/bJ7pTyW.jpg Share this post Link to post Share on other sites
jshock 513 Posted January 23, 2015 Needs to be: private ["_enemyGroup"]; _enemyGroup = createGroup civilian; switch (playerSide) do { case civilian: { }; case independent: { [player] joinSilent _enemyGroup;//<<Player must be in [ ] }; }; 1 1 Share this post Link to post Share on other sites
SniPeZz_Qc 10 Posted January 23, 2015 Thank you, now I don't have any error but did is exist a way to change the team and to join de civilian side when you are independent without staying in the independent team ? Share this post Link to post Share on other sites
jshock 513 Posted January 23, 2015 I think the way it has been exampled above is the only way (at least that I can think of), and a switch in this case is overkill a simple: _newGroup = createGroup CIVILIAN; if (playerSide isEqualTo INDEPENDENT) then { [player] joinSilent _newGroup; }; 1 Share this post Link to post Share on other sites
SniPeZz_Qc 10 Posted January 23, 2015 I think the way it has been exampled above is the only way (at least that I can think of), and a switch in this case is overkill a simple: _newGroup = createGroup CIVILIAN; if (playerSide isEqualTo INDEPENDENT) then { [player] joinSilent _newGroup; }; Ok thank you boy it's very apreciate. Share this post Link to post Share on other sites
bobbart 10 Posted January 22, 2017 where would I put this code? I want to have exile blufor players and not Independent Share this post Link to post Share on other sites
RafaDombras 24 Posted November 6, 2020 Thanks for the ideas, I'm inserting in my mission, at the menu, the possibility to switch sides and respawn! Very good thanks! 1 Share this post Link to post Share on other sites