a3_vemf_reloaded/exile_vemf_reloaded/sqf/spawnStaticAI.sqf

23 lines
634 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-07-02 14:24:53 +00:00
if ((([["aiStatic"],["enabled"]] call VEMFr_fnc_config) 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-07-02 14:24:53 +00:00
([["aiStatic"],["positions","amount"]] call VEMFr_fnc_config) params ["_s0","_s1"];
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
{
2016-07-02 14:24:53 +00:00
[_x, 2, _s1 select _foreachindex, ("aiMode" call VEMFr_fnc_config), "Static"] spawn VEMFr_fnc_spawnVEMFrAI;
} forEach _s0;
2016-04-13 20:32:39 +00:00
};