Jump to content

Recommended Posts

When the EDEN update hit, gear randomization was apparently disabled for missions created in EDEN. I need this on for my mission, but I haven't been able to get it back either by

setting bis_enableRandomization to true,

running the script manually from the pbo,

running the function,

using the description.ext parameter that controls randomization.

I need a simple fix that can randomize the uniforms and headgear without having to get all the classnames myself.

Share this post


Link to post
Share on other sites

Getting arrays of available headgears and uniforms.

allwdHg = [];
allwdUf = [];
{
	allwdUf pushBack getText(_x >> "uniformClass");
	// if collecting headgears for all classes
	if (isArray(_x >> "allowedHeadgear")) then {
		allwdHg append getArray(_x >> "allowedHeadgear");
	};
	if (isArray(_x >> "allowedHeadgearB")) then {
		allwdHg append getArray(_x >> "allowedHeadgearB");
	};
}
// 1 is for WEST guerillas, i.e. B_G_* classes, which FIAs are
count ("getNumber(_x >> 'side') == 1" configClasses (configFile >> "I_G_Soldier_base_F"));
allwdHg = (allwdHg arrayIntersect allwdHg);
allwdUf = (allwdUf arrayIntersect allwdUf);

Non-guerilla units seem not to have allowedHeadgear* arrays.

Hope that helps.

Share this post


Link to post
Share on other sites

Was hoping to just be able to apply if dirrectly, but this should help, saves me time having to get it myself and I'm kind of on a strict schedule for this mission. Cheers!

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

×