Jump to content
Sign in to follow this  
wyattwic

missionConfigFile and getMissionConfig cant find "Params" as of last patch

Recommended Posts

Hello!

 

I am having trouble finding out what has gone wrong with this segment of code.   Ive been using it since the days of ArmA 2 without issue, but this last patch seems to be giving me issues.

if (isNil "paramsArray") then {
	if (isClass (missionConfigFile/"Params")) then {
		for "_i" from 0 to (count (missionConfigFile/"Params") - 1) do {
			_paramName = configName ((missionConfigFile >> "Params") select _i);
			missionNamespace setVariable [_paramName, getNumber (missionConfigFile >> "Params" >> _paramName >> "default")];
		};
	};
} else {
	for "_i" from 0 to (count paramsArray - 1) do {
		missionNamespace setVariable [configName ((missionConfigFile >> "Params") select _i), paramsArray select _i];
	};
};

I have attempted to utilize getMissionConfig thinking the statement about the old method still working was "out of date", however I get no return when looking for Params.

 

Thank you!

 

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
Sign in to follow this  

×