//Defined in description.ext
// Check value of ParamsArray;
if (!isNil {paramsArray}) then {
hint str(paramsArray);
};
// Case 1:
class Params
{
class MY_Test
{
title = "test";
values[] = {0,1,0.6};
texts[] = {"Disabled","Enabled","Custom_0_6"};
default = 0.6;
};
};
// invoked via #missions to grab default-Value
// results in a Value of "0"
// Case 2:
class Params
{
class MY_Test
{
title = "test";
values[] = {0,1,0.6};
texts[] = {"Disabled","Enabled","Custom_0_6"};
default = 0.5;
};
};
// invoked via #missions to grab default-Value
// results in a Value of "0"
Case #3
// Case 1:
class Params
{
class MY_Test
{
title = "test";
values[] = {0,1,0.6};
texts[] = {"Disabled","Enabled","Custom_0_6"};
default = 0.9;
};
};
// invoked via Mission Rotation with value of 0.6
class Missions
{
class MyMission
{
template="MyMission_BL_OP.Altis";
difficulty="Regular";
class Params { MY_Test = 0.6; };
};
// results in a Value of "0.6"