mirror of
https://github.com/SnarkIndustries/A3XAI-Final.git
synced 2024-08-30 17:22:13 +00:00
Releasing previously unreleased version. Completely unsupported with no guarantee of functionality. Use at own risk.
23 lines
624 B
Plaintext
23 lines
624 B
Plaintext
#include "\A3XAI\globaldefines.hpp"
|
|
|
|
private ["_trigger","_spawnParams","_result"];
|
|
|
|
_trigger = _this select 0;
|
|
_spawnParams = _this select 1;
|
|
|
|
_result = true;
|
|
if ((count _spawnParams) isEqualTo 4) then {
|
|
_trigger setVariable ["minAI",_spawnParams select 0];
|
|
_trigger setVariable ["addAI",_spawnParams select 1];
|
|
_trigger setVariable ["unitLevel",_spawnParams select 2];
|
|
_trigger setVariable ["spawnChance",_spawnParams select 3];
|
|
} else {
|
|
_trigger setVariable ["minAI",1];
|
|
_trigger setVariable ["addAI",1];
|
|
_trigger setVariable ["unitLevel",1];
|
|
_trigger setVariable ["spawnChance",1];
|
|
_result = false;
|
|
};
|
|
|
|
_result
|