Darihon

fortress

Jun 15th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.49 KB | None | 0 0
  1. //Config
  2. _box = "USBasicAmmunitionBox_EP1";
  3. _requireditemsf = [];
  4. _requireditemsh = [];
  5. _requireditemsb = [];
  6. // End Config
  7.  
  8. _countbox = count nearestObjects [player, _box, 3];
  9.  
  10. if (_countbox) then {
  11.     if (_requireditemsf in magazines _box) then {
  12.         player AddAction ["Build Fortress","script"];
  13. };
  14.     if (_requireditemsh in magazines _box) then {
  15.         player AddAction ["Build Hero","script"];
  16. };
  17.     if (_requireditemsb in magazines _box) then {
  18.         player AddAction ["Build Bandit","script"];
  19. };
Advertisement
Add Comment
Please, Sign In to add comment