mirror of
https://github.com/rambo/arma3_missions.git
synced 2024-08-30 16:52:13 +00:00
41 lines
768 B
Plaintext
41 lines
768 B
Plaintext
|
null = execVM "briefing.sqf";
|
||
|
|
||
|
//Handle parameters
|
||
|
|
||
|
//Time of day
|
||
|
_time = paramsArray select 0;
|
||
|
if (_time != 1) then
|
||
|
{
|
||
|
skiptime _time;
|
||
|
}
|
||
|
else
|
||
|
{
|
||
|
skiptime (floor random 24);
|
||
|
};
|
||
|
|
||
|
//LZ size
|
||
|
lzSize = paramsArray select 1;
|
||
|
publicVariable "lzSize";
|
||
|
|
||
|
//Smoke setting
|
||
|
bSmoke = if ((paramsArray select 2) == 1) then {true} else {false};
|
||
|
publicVariable "bSmoke";
|
||
|
|
||
|
//Hot LZ chance
|
||
|
_hotLZParam = paramsArray select 3;
|
||
|
hotLZChance = if (_hotLZParam > 0) then {_hotLZParam / 100} else {0.0};
|
||
|
publicVariable "hotLZChance";
|
||
|
|
||
|
//Anti air chance
|
||
|
_AAParam = paramsArray select 4;
|
||
|
AAChance = if (_AAParam > 0) then {_AAParam / 100} else {0.0};
|
||
|
publicVariable "AAChance";
|
||
|
|
||
|
squadArray = [];
|
||
|
enemyArray = [];
|
||
|
AAArray = [];
|
||
|
|
||
|
missionInitComplete = true;
|
||
|
publicVariable "missionInitComplete";
|
||
|
|