Example how add and use mission parameters:
Code
class Params {
//Basic
class DayTime
{
//paramsArray[0]
title = "Time:";
values[] = {6, 14, 17,20,23};
texts[] = {"Sunrise","Day","Sunset","Evening","Night"};
default = 14;
};
class ViewDistance
{
//paramsArray[1]
title = "View Distance:";
values[] = {1000,1500,2000,2500,3000};
texts[] = {"1000m","1500m","2000m","2500m","3000m"};
default = 1500;
};
how include or integrate parameters to mission scripts:
Code
etViewDistance (paramsArray select 1);
paramsArray select (param number)