Jump to content
Sideguy

Randomizing Equipment for AI in Custom Faction

Recommended Posts

Hey there, I'm making a custom faction mod and I'm wanting to randomize some of the equipment like their uniform, vests, and weapons. I've tried looking it up, but all I've found is just randomizing the equipment of AI in-game and stuff using the init of the AI itself. I'm using Alive to make the faction then exporting it out. This is what Alive faction editor generates:

Spoiler

class B_BVolkylaArmyWinterGreenland_Rifleman_01 : rhsgref_cdf_b_reg_rifleman_OCimport_02 {

author = "Loadout Volkyla";

scope = 2;

scopeCurator = 2;

displayName = "Rifleman";

side = 1;

faction = "B_VolkylaArmy_WinterGreenland";

 

identityTypes[] = {"Head_Euro","LanguageCZ"};

 

uniformClass = "UK3CB_MDF_B_U_CombatUniform_02_LIZ_OD";

 

linkedItems[] = {"rhsgref_6b23_khaki_rifleman","UK3CB_ADA_B_H_6b27m_ml_ESS_OLI","ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch"};

respawnlinkedItems[] = {"rhsgref_6b23_khaki_rifleman","UK3CB_ADA_B_H_6b27m_ml_ESS_OLI","ItemMap","ItemGPS","ItemRadio","ItemCompass","ItemWatch"};

 

weapons[] = {"uk3cb_ak47"};

respawnWeapons[] = {"uk3cb_ak47"};

 

magazines[] = {"30Rnd_762x39_Mag_F","30Rnd_762x39_Mag_F"};

respawnMagazines[] = {"30Rnd_762x39_Mag_F","30Rnd_762x39_Mag_F"};

 

backpack = "UK3CB_B_Bedroll_Backpack";

I know the FIA faction randomizes their facewear and headgear, though I forgot how they do so (I saw it on bohemias wiki but I can't find it again. Is there a way that I can add a script into my faction mod that will randomize the equipment or is there something I can change with the code to randomize it? Thanks

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

×