A3XAI-Final/A3XAI/compile/A3XAI_createGroup.sqf
Snark Industries c4a7084754 A3XAI Final Release (April 17, 2016 version)
Releasing previously unreleased version. Completely unsupported with no guarantee of functionality. Use at own risk.
2017-07-19 21:20:00 -04:00

11 lines
313 B
Plaintext

#include "\A3XAI\globaldefines.hpp"
private["_unitGroup","_protect","_unitType"];
_unitType = _this select 0;
_unitGroup = createGroup A3XAI_side;
if ((count _this) > 1) then {_unitGroup call A3XAI_protectGroup};
[_unitGroup,_unitType] call A3XAI_setUnitType;
A3XAI_activeGroups pushBack _unitGroup;
_unitGroup