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: createRandomSoldierC.sqf
- if (!isServer) exitWith {};
- private ["_soldierTypes", "_weaponTypes", "_group", "_position", "_soldier"];
- _group = _this select 0;
- _position = _this select 1;
- _soldier = _group createUnit [_soldier call randomSoldierLoadOut, _position, [], 0, "NONE"];
- _soldier spawn refillPrimaryAmmo;
- _soldier call setMissionSkill;
- _soldier addEventHandler ["Killed", server_playerDied];
- _soldier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement