Jump to content
Chabbowabbo

How to make Takistani OPFOR hostile to Russian OFOR?

Recommended Posts

Hi there,

 

I am creating a scenario where we are Russians in Iraq fighting ISIS. How do I make the Takistani Militia hostile to us please?

 

Many thanks!

Share this post


Link to post
Share on other sites

You can use independent or even blufor sides for any group you want. Are you editing or spawning (by script) your units ? How?

In editor, the simplest way is to add a "fake leader", i.e an independent soldier, group all the TKM units of a group on it. Make it presence 0% (or false). Now, your TKM group is independent.

  • Like 2

Share this post


Link to post
Share on other sites

Hi there, 

 

Thanks for the reply. So I will be using Zeus to spawn enemy units. In this case I need them to be hostile to the Russians - both are OPFOR in red. I am sorry but I do not understand the bit about fake leader. I used to play this a lot and do a lot of scripting for it a few years ago, but forgot it all!

 

Cheers!

Share this post


Link to post
Share on other sites

In editor, just test what is written above. No difficulty to follow.

With Zeus, that demands a little script:
Say your module game master (or logic) is named myZeus...
in init field of the module:
 

myZeus addEventHandler ["CuratorGroupPlaced", {
  params ["_curator", "_group"];
  if (side _group == east) then {
    _group deleteGroupWhenEmpty TRUE;
    _gp = createGroup INDEPENDENT;
    {[_x] joinSilent _gp} count units _group;
    _gp deleteGroupWhenEmpty TRUE;
  }
}];

 

I know that this code will change any east placed group into independent ones. It's at your hand for adding a condition about what groups or what factions you want them to change.

  • Thanks 1

Share this post


Link to post
Share on other sites
9 hours ago, Chabbowabbo said:

Hi there, 

 

Thanks for the reply. So I will be using Zeus to spawn enemy units. In this case I need them to be hostile to the Russians - both are OPFOR in red. I am sorry but I do not understand the bit about fake leader. I used to play this a lot and do a lot of scripting for it a few years ago, but forgot it all!

 

Cheers!

What you likely want to do is when you spawn the group of russian soldiers in the Mission Editor, you should also spawn an independent unit(For example, an AAF Rifleman). Group the Russians to the independent unit by selecting the Russian soldiers, right clicking, clicking "group to", then clicking on the independent unit. The icon for the squad should switch to green and they should become independent. If it doesn't work the first time, it can be finicky, so try it once or twice more. You can then right click on the unit icon(the hovering green square part) to save the independent russian squad as a custom composition, in case you want to add more later.

  • Thanks 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

×