Advertisement
KRDucky

createRandomSoldierC

Mar 14th, 2017
590
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 0.71 KB | None | 0 0
  1. // ******************************************************************************************
  2. // * This project is licensed under the GNU Affero GPL v3. Copyright © 2014 A3Wasteland.com *
  3. // ******************************************************************************************
  4. //  @file Name: createRandomSoldierC.sqf
  5.  
  6. if (!isServer) exitWith {};
  7.  
  8. private ["_soldierTypes", "_weaponTypes", "_group", "_position", "_soldier"];
  9.  
  10.  
  11. _group = _this select 0;
  12. _position = _this select 1;
  13. _soldier = _group createUnit [_soldier call randomSoldierLoadOut, _position, [], 0, "NONE"];
  14.  
  15.  
  16. _soldier spawn refillPrimaryAmmo;
  17. _soldier call setMissionSkill;
  18.  
  19. _soldier addEventHandler ["Killed", server_playerDied];
  20.  
  21. _soldier
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement