Jump to content
Sign in to follow this  
McArcher

How to make CDF faction hostile

Recommended Posts

How can I make (by a script) the CDF faction hostile to both WEST and EAST ?

---------- Post added at 17:06 ---------- Previous post was at 16:50 ----------

as I know, setFriend works with side as a parameter, but CDF is not a side, but a faction.

---------- Post added at 17:11 ---------- Previous post was at 17:06 ----------

I use

tmp_grp = [_x, resistance, _list ] call BIS_fnc_spawnGroup;

to spawn units from CDF faction, I've created resistance center by

ResHQ = createCenter resistance;

publicVariable "ResHQ";

but CDF units are hostile only to Russian forces (east faction) and friendly to US (west). And wiki says that CDF are west side too...

Share this post


Link to post
Share on other sites

Well there is a selection menu in the same place where you set the time and weather that sets who the resistance side are friendly to, you may still have it on the default of Blufor.

Share this post


Link to post
Share on other sites

Well seeing as the CDF faction's side is West, an old method was to group[F2]your CDF squad leader, with say an East's officer, so that the entire squad groups to the East officer. Set the East officers probability of presence to 0, now when you start the mission the East officer won't appear but the CDF squad will still be thinking they are from the east.

Share this post


Link to post
Share on other sites
Well seeing as the CDF faction's side is West, an old method was to group[F2]your CDF squad leader, with say an East's officer, so that the entire squad groups to the East officer. Set the East officers probability of presence to 0, now when you start the mission the East officer won't appear but the CDF squad will still be thinking they are from the east.

it is too complicated to do by script. I changed I thing in editor and now it workds fine. (except, CDF units are marked green on map for west players, but really they are hostiles to west now)

Share this post


Link to post
Share on other sites
it is too complicated to do by script. I changed I thing in editor and now it workds fine. (except, CDF units are marked green on map for west players, but really they are hostiles to west now)

The method I suggested is not a script. It is done in the editor, Probabilaty of presence is a slider box located at the bottom of each unit properties box. The group function is acessed by using the f2 key, and drag a line between the CDF units to the east officer.

Share this post


Link to post
Share on other sites
The method I suggested is not a script. It is done in the editor, Probabilaty of presence is a slider box located at the bottom of each unit properties box. The group function is acessed by using the f2 key, and drag a line between the CDF units to the east officer.

all my units (except starting playable units) in mission are created dynamically by script...

so Andy455's advice was perfect for me.

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  

×