mirror of
https://github.com/IT07/a3_vemf_reloaded.git
synced 2024-08-30 16:52:11 +00:00
28 lines
748 B
Plaintext
28 lines
748 B
Plaintext
/*
|
|
Author: IT07
|
|
|
|
Description:
|
|
spawns AI at all given locations in config file
|
|
|
|
Params:
|
|
none
|
|
|
|
Returns:
|
|
nothing
|
|
*/
|
|
|
|
if (([["aiStatic"],["enabled"]] call VEMFr_fnc_getSetting) select 0 isEqualTo 1) then
|
|
{
|
|
["spawnStaticAI", 2, "launching..."] spawn VEMFr_fnc_log;
|
|
_settings = [["aiStatic"],["positions","amount"]] call VEMFr_fnc_getSetting;
|
|
_positions = _settings select 0;
|
|
if (count _positions > 0) then
|
|
{
|
|
["spawnStaticAI", 2, "spawning AI on positions..."] spawn VEMFr_fnc_log;
|
|
_amounts = _settings select 1;
|
|
{
|
|
[_x, 2, _amounts select _foreachindex, "aiMode" call VEMFr_fnc_getSetting, "Static"] spawn VEMFr_fnc_spawnVEMFrAI;
|
|
} forEach _positions;
|
|
};
|
|
};
|