Advertisement
Guest User

tpw_furniture_fnc_delete.sqf

a guest
Oct 24th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.45 KB | None | 0 0
  1. _modloc = _this select 0;
  2. _range = _this select 1;
  3. for "_i" from 0 to count tpw_furniture_houses - 1 do
  4.     {
  5.     _bld = tpw_furniture_houses select _i;
  6.     if (_bld distance _modloc <= _range) then
  7.         {
  8.             {
  9.             deletevehicle _x;
  10.             sleep 0.05;
  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.         tpw_furniture_houses deleteAt _i;  
  16.         };
  17.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement