Rebitaay

Member

Last active 7 years ago

  1. 7 years ago
    Wed Mar 15 18:43:24 2017

    @HeroesandvillainsOS  Why not just do it the easy way and have two different mission PBO's, where the missions are identical aside from the insurgent faction?

    I considered it, and while certainly easier, I really want to be able to just use parameters. I'm still constantly updating scripts and adding new features, and I don't want to have to update 3-5 missions every time.

  2. Wed Mar 15 18:38:15 2017
    Rebitaay started the conversation Can I set an AI faction with mission parameters?.

    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!

  3. Wed Mar 15 18:32:38 2017
    Rebitaay joined the forum.