Jump to content
Sign in to follow this  
SniPeZz_Qc

Change player side

Recommended Posts

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

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

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

  • Like 2

Share this post


Link to post
Share on other sites
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

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

Needs to be:

private ["_enemyGroup"];

_enemyGroup = createGroup civilian;

switch (playerSide) do
{
case civilian:
{

};
case independent:
{
	[player] joinSilent _enemyGroup;//<<Player must be in [ ]
};
};

  • Like 1
  • Thanks 1

Share this post


Link to post
Share on other sites

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

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;
};

  • Like 1

Share this post


Link to post
Share on other sites
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

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

Thanks for the ideas, I'm inserting in my mission, at the menu, the possibility to switch sides and respawn! Very good thanks!

 

 

  • Like 1

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  

×