Arma 2: Operation Arrowhead

Arma 2: Operation Arrowhead

Liam Nov 16, 2014 @ 4:13am
editor help needed!!!
could someone please tell me how to change the factions used in the warfare module? everytime i use the warfare module i can only recruit US or Russian soldiers from the unit menu, where i would much rather use CDF and insurgent soldiers for a milsim type mission, any help would be very much apprieciated :)
< >
Showing 1-1 of 1 comments
opusfmspol Nov 18, 2014 @ 2:19pm 
Changing Warfare factions has a depency on the structures config. You'll need to work with faction and structures. There are three files that go in your mission folder:

- custom Init Mission
- custom Init Common
- copy of Warfare Structures config.

You'll need Warfare to call a custom Init Mission script as described by Darren Brant.
http://sandbox.darrenbrant.com/arma_ii/how-to-setup-the-arma-ii-warfare-module
http://sandbox.darrenbrant.com/arma_ii/customizing-the-warfare-aircraft-factory-part-2

He demonstrates how to adjust the Aircraft config. You want to adjust Factions, and the Structures config instead.

In your custom Init Common script (called by the custom Mission Init), put this:

BIS_WF_Common SetVariable ["WestFactions",[Localize "STR_FN_CDF"]];
BIS_WF_Common SetVariable ["EastFactions",[,Localize "STR_FN_INS"]];

That sets the factions to CDF and Insurgents. But the structures will still produce USMC and RU units. They are fixed to USMC and RU and don't provide faction alternative. You need to change the Structure factions and recompile the config.

So add this line to the Init Common:

[] Call Compile PreprocessFile ("Config_Structures.sqf");

Use a pbo extractor and obtain a copy of Warfare's Config_Structures.sqf script. Copy it to your mission file. Open it, and where you see the assignments of:

_f = [[Localize "STR_FN_USMC"]];

- or -

_f = _f + [[Localize "STR_FN_USMC"]];

change USMC faction to: [[Localize "STR_FN_CDF"]];

And where you see assignments of:

_f = [[Localize "STR_FN_RU"]];

- or -

_f = _f + [[Localize "STR_FN_RU"]];

change RU faction to: [[Localize "STR_FN_INS"]];

Save and run. The HQ and factories will still be USMC and RU, but will produce CDF and INS units. Since you have the Structures config in your mission folder anyway, you could also change them to the correct WF faction objects if you wish.

Hope this helps.
Last edited by opusfmspol; Nov 18, 2014 @ 2:21pm
< >
Showing 1-1 of 1 comments
Per page: 1530 50

Date Posted: Nov 16, 2014 @ 4:13am
Posts: 1