Hey everyone,
I've been making a mission for a week for me and my buddies to play, and it's coming along nicely. But, one thing I've started doing is adding the ability to customize certain aspects of the missions. The one thing EVERYONE wanted is the ability to choose the insurgent faction, so we can switch the enemy team depending on what mods we are running.
But, I can't figure out how to do this. I've got the parameters and everything set up, but I've searched and searched again and can't find any way to get the Military AI Commander module to use a value from a parameter.
description.ext:
class Params { class InsTeam { title = "Insurgents"; texts[] = {"FIA", "Syndikat"}; values[] = {OPF_G_F,IND_C_F}; default = OPF_G_F; isGlobal = 0; }; };
Setting the "Override Factions" line to "InsTeam" call BIS_fnc_getParamValue
does not work. It just tries to use the code as a faction name. Can anyone help me out? Is it even possible?
Thanks!