Advertisement
Guest User

Untitled

a guest
Oct 25th, 2017
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.56 KB | None | 0 0
  1. _modloc = _this select 0;
  2. _range = _this select 1;
  3. _countbld = [];
  4. {
  5.     _bld = tpw_furniture_houses select _forEachIndex;
  6.     if ((_bld distance _modloc) <= _range) then
  7.         {
  8.             {
  9.             deletevehicle _x;
  10.             sleep 0.01;
  11.             } count (_bld getvariable "tpw_spawned");
  12.         _bld setvariable ["tpw_furnished",1];
  13.         _bld setvariable ["tpw_spawned",[]];               
  14.         //tpw_furniture_houses set [_i,-1];
  15.         _countbld pushBack _bld;
  16.         };
  17. } forEach tpw_furniture_houses;
  18. tpw_furniture_houses = tpw_furniture_houses - _countbld;
  19. _countbld = [];
  20. systemChat format["%1",count _countbld];
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement