Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // ******************************************************************************************
- // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
- // ******************************************************************************************
- // @file Name: customGroup2.sqf
- // @file Author: AgentRev, JoSchaap
- if (!isServer) exitWith {};
- private ["_group", "_pos", "_nbUnits", "_unitTypes", "_uPos", "_unit"];
- _group = _this select 0;
- _pos = _this select 1;
- _nbUnits = param [2, 7, [0]];
- _radius = param [3, 10, [0]];
- _unitTypes =
- [
- "C_man_hunter_1_F","C_man_p_beggar_F","C_man_p_beggar_F_afro",
- "C_man_p_fugitive_F","C_man_p_shorts_1_F","C_man_polo_1_F",
- "C_man_polo_2_F","C_man_polo_3_F","C_man_polo_4_F",
- "C_man_p_beggar_F","C_man_p_beggar_F_afro",
- "C_man_p_fugitive_F","C_journalist_F","C_Orestes",
- "C_man_polo_5_F","C_man_polo_6_F","C_man_shorts_1_F",
- "C_man_shorts_2_F","C_man_shorts_3_F","C_man_shorts_4_F",
- "C_man_w_worker_F","C_man_p_beggar_F","C_man_p_beggar_F_afro",
- "C_man_p_fugitive_F"
- ];
- for "_i" from 1 to _nbUnits do
- {
- _uPos = _pos vectorAdd ([[random _radius, 0, 0], random 360] call BIS_fnc_rotateVector2D);
- _unit = _group createUnit [_unitTypes call BIS_fnc_selectRandom, _uPos, [], 0, "Form"];
- _unit setPosATL _uPos;
- removeAllWeapons _unit;
- removeAllAssignedItems _unit;
- removeVest _unit;
- removeBackpack _unit;
- _unit call randomSoldierLoadOut;
- _unit enablegunlights "forceOn";
- _unit addRating 1e11;
- _unit spawn refillPrimaryAmmo;
- _unit call setMissionSkill;
- _unit addEventHandler ["Killed", server_playerDied];
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement