Sarge-AI/sarge/UPSMON/COMMON/Params/fnc/UPSMON_Settemplate.sqf

29 lines
744 B
Plaintext
Raw Normal View History

2016-08-19 02:58:49 +00:00
/****************************************************************
File: UPSMON_SetTemplate.sqf
Author: Azroul13
Description:
Parameter(s):
<--- Spawned parameter
<--- template number
<--- Side of the group
Returns:
****************************************************************/
private["_spawned","_template","_side","_unitstypes"];
_spawned= _this select 0;
_template = _this select 1;
_side = _this select 2;
_unitstypes = _this select 3;
//Fills template array for spawn
if (_template > 0 && !_spawned) then
{
UPSMON_TEMPLATES = UPSMON_TEMPLATES + ( [[_template]+[_side]+_unitstypes select 0+_unitstypes select 1] );
if (UPSMON_Debug>0) then
{
diag_log format["Adding TEMPLATE %1 _spawned %2",_template,_spawned];
};
};