Jump to content
Sign in to follow this  
vintorez

How to change side of units?

Recommended Posts

Hi everyone. I want in my mission to change the ChDKZ side in this way that Russian side will treat them as enemies. What script to use in order to change faction the ChDKZ on for example CDF?

Share this post


Link to post
Share on other sites

Thank you :bounce3:

Share this post


Link to post
Share on other sites

Excuse me, but I didn't quite understand this.

West means BLUFOR, East means OPFOR and Resistance means NAPA, right? So how can you make two East factions hostile to each other? Shouldn't it have a more specific definition of the faction, like for example:

ChDKZ setFriend [East, 0];

East setFriend [ChDKZ, 0];

I know it doesn't work like that, but I'm also designing a mission with Russia vs. ChDKZ, and am searching a more sophisticated way of making them hostile than the good old "making-an-invisible-West-officer" trick.

Share this post


Link to post
Share on other sites

Sorry to dig up an old thread but I am wondering the same thing as above post.

Although, I'm trying to make the ChDKZ friendly to West and enemy to East.

Share this post


Link to post
Share on other sites

Because they are inner factions, you cannot use the set friend command. Howerer if you create a (West) group then join them to it, you should be fine.

Ie:

http://community.bistudio.com/wiki/createCenter

http://community.bistudio.com/wiki/createGroup

http://community.bistudio.com/wiki/joinSilent

_side = createCenter WEST;
_group = createGroup _SIDE;
[_unit] joinSilent _group;
_units joinSilent _group;

Remember it must be [] joinSilent (ie an array). Check the BIKI if you have trouble with parameters, if you don't understand the logic, I'll go into more depth for you.

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  

×