Jump to content
Starker

Dynamically Change Faction Alliances

Recommended Posts

I am making a Zues mission in which the players are disguised as civilians, but suspicious activity would cause nearby militants to attack them. I need to have the militants ignore them by default, attack when I order them to as Zues, then eventually become passive again when ordered. It seems it is not possible to force a unit to attack another unit who is part of an allied faction.

 

I think that I need to have the players in the Civilian faction by default and the militants as the Opfor faction and find a way to adjust their alliance with civilians on the fly. I have not found a way to do this yet.

 

Can intermittent hostility be controlled by a Zues? Has anyone found a way to do this?

  • Like 1

Share this post


Link to post
Share on other sites
4 hours ago, Starker said:

I need to have the militants ignore them

 

Helo there Starker !

 

You can change the side of the enemy units dynamic :

ex for civilian side to join east:

call{
	_changing = allUnits select {(side _x isEqualTo civilian) &&  (!isPlayer _x)};
	_changing apply { 
	units _x joinSilent _Join_East;	
	[_Join_East, _Pos_1] call BIS_fnc_taskAttack;

 

  • Like 2

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

×