2016-05-31 15:28:07 +00:00
|
|
|
params [["_trgt",player],"_targetPos","_unit","_grp","_driver"];
|
|
|
|
_targetPos = getPosATL _trgt;
|
|
|
|
_targetPos = [_targetPos, 600, 1200, 5, 0, 400, 0] call BIS_fnc_findSafePos;
|
|
|
|
_targetPos set[2, 600];
|
|
|
|
_unit = createVehicle["I_UAV_01_F", _targetPos, [], 0, "FLY"];
|
2016-11-02 19:40:26 +00:00
|
|
|
_unit disableTIEquipment true;
|
2016-05-31 15:28:07 +00:00
|
|
|
addToRemainsCollector[_unit];
|
|
|
|
_unit flyInHeight 600;
|
2017-03-26 15:21:26 +00:00
|
|
|
_grp = createGroup [RESISTANCE, true];
|
2016-05-31 15:28:07 +00:00
|
|
|
_driver = _grp createUnit["I_UAV_AI", position _unit, [], 0, "CAN_COLLIDE"];
|
|
|
|
_driver moveInAny _unit;
|
2016-11-02 19:40:26 +00:00
|
|
|
[_unit, _trgt] execFSM "\x\addons\a3_epoch_code\System\Copter_brain.fsm";
|