Jump to content
loopdk

Change player side with a AddAction

Recommended Posts

Hallo guys.

 

II have been on google the most of the day to finde a small script that will allow me to go to a object and use a addaction  and the get my civilians to become bluefore.

 

 

All things will be a help right now:D
 

 

  • Like 1

Share this post


Link to post
Share on other sites

Hello there loopdk !

 

This is an example ,

just add this in an addaction and it will work for all the civilians (except player) :

	//________________	Change Side	________________	
	_Join_East = creategroup east;
call{
	_changing = allUnits select {(side _x isEqualTo civilian) &&  (!isPlayer _x)};
	_changing apply{ 
		units _x joinSilent _Join_East;
		};
	};

 

Share this post


Link to post
Share on other sites

The civilians are players 😕

  • Haha 1

Share this post


Link to post
Share on other sites
_group = createGroup west; {if (side _x == civilian) then {[_x] joinSilent _group;}} forEach allPlayers;

Or if you want every player to join blufor

_group = createGroup west; allPlayers joinSilent _group;

 

  • Like 1

Share this post


Link to post
Share on other sites
5 hours ago, loopdk said:

The civilians are players 😕

 

Haha !

It's good always to add more info !

Share this post


Link to post
Share on other sites

Sorry mate.

 

Its for oure basic Training. 

 

They start as civilians,  after a short intro i need them to become bluefor

Share this post


Link to post
Share on other sites
11 minutes ago, loopdk said:

Sorry mate.

 

Its for oure basic Training. 

 

They start as civilians,  after a short intro i need them to become bluefor

Should everyone be in a single group or individual groups for every player?

As already stated, be as precise as possible, doesn't really help when everyone starts posting suggestions when further detail only comes to light when those suggestions don't do what you initially had in mind.

A quick bullet list of all wanted functionality goes a long way.

 

Cheers

  • Thanks 1

Share this post


Link to post
Share on other sites

Hmm oki lets se.

 

I got X civilians(not a group)

the starts a civilians.

then the have a small brifing about 3para-gu.

then the go to the armory.

there i got a flagpoll where i godt a Addaction...Enroll in the ITC program.

Every civilian shall go to the flagpoll and use the addaction so the go from civilian to blueforce

 

 

Share this post


Link to post
Share on other sites
53 minutes ago, loopdk said:

Hmm oki lets se.

 

I got X civilians(not a group)

the starts a civilians.

then the have a small brifing about 3para-gu.

then the go to the armory.

there i got a flagpoll where i godt a Addaction...Enroll in the ITC program.

Every civilian shall go to the flagpoll and use the addaction so the go from civilian to blueforce

 

 

Allright, could be as simple as this:

//initPlayerLocal.sqf
YourFlagpole addAction ["Enroll in the ITC program",{[_this#1] joinSilent createGroup west},[],6,true,true,"","_this isEqualTo vehicle _this and side _this isEqualTo civilian",5]

Won't show for anyone but civilians, so once they join an individual blufor group they will no longer see this action.

 

Cheers

  • Like 3

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

×