a3_vemf_reloaded/exile_vemf_reloaded/sqf/spawnStaticAI.sqf

25 lines
713 B
Plaintext
Raw Normal View History

2016-04-13 20:32:39 +00:00
/*
Author: IT07
Description:
spawns AI at all given locations in config file
Params:
none
Returns:
nothing
*/
2016-04-15 11:37:42 +00:00
if (([["aiStatic"],["enabled"]] call VEMFr_fnc_getSetting) select 0 isEqualTo 1) then
2016-04-13 20:32:39 +00:00
{
2016-05-10 12:18:49 +00:00
["spawnStaticAI", 2, "launching..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
2016-05-06 11:06:37 +00:00
_settings = [["aiStatic"],["positions","amount"]] call VEMFr_fnc_getSetting;
_positions = _settings select 0;
2016-05-10 12:18:49 +00:00
["spawnStaticAI", 2, "spawning AI on positions..."] ExecVM "exile_vemf_reloaded\sqf\log.sqf";
2016-05-06 11:06:37 +00:00
_amounts = _settings select 1;
{
[_x, 2, _amounts select _foreachindex, "aiMode" call VEMFr_fnc_getSetting, "Static"] spawn VEMFr_fnc_spawnVEMFrAI;
} forEach _positions;
2016-04-13 20:32:39 +00:00
};