2016-04-13 20:32:39 +00:00
|
|
|
/*
|
|
|
|
Author: IT07
|
|
|
|
|
|
|
|
Description:
|
|
|
|
spawns AI at all given locations in config file
|
|
|
|
|
|
|
|
Params:
|
|
|
|
none
|
|
|
|
|
|
|
|
Returns:
|
|
|
|
nothing
|
|
|
|
*/
|
|
|
|
|
|
|
|
if ([["aiStatic"],["enabled"]] call VEMFr_fnc_getSetting isEqualTo 1) then
|
|
|
|
{
|
|
|
|
["spawnStaticAI", 3, "launching..."] spawn VEMFr_fnc_log;
|
|
|
|
_settings = [["aiStatic"],["positions","amount"]] call VEMFr_fnc_getSetting;
|
|
|
|
_positions = _settings select 0;
|
|
|
|
if (count _positions > 0) then
|
|
|
|
{
|
|
|
|
["spawnStaticAI", 3, "spawning AI on positions..."] spawn VEMFr_fnc_log;
|
|
|
|
_amounts = _settings select 1;
|
|
|
|
{
|
|
|
|
_amount = _amounts select _foreachindex;
|
2016-04-14 10:25:23 +00:00
|
|
|
[_x, 2, _amount / 2, "aiMode" call VEMFr_fnc_getSetting] spawn VEMFr_fnc_spawnVEMFrAI;
|
2016-04-13 20:32:39 +00:00
|
|
|
} forEach _positions;
|
|
|
|
};
|
|
|
|
};
|