Guest User

initPlayerLocal.sqf

a guest
Oct 24th, 2017
122
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.74 KB | None | 0 0
  1.     tpw_furniture_houses = [];
  2.     ["Buildings", "Furnish",
  3.     {
  4.         _dialog_result = ["Test Dialog",
  5.         [
  6.         ["Range [m]", "", "0"],
  7.         ["Spawn", ["Spawn","Delete"], 1]
  8.         ]] call Ares_fnc_showChooseDialog;
  9.         if (count _dialog_result == 0) exitWith {};
  10.         systemChat format ["Range: %1", _dialog_result select 0];
  11.         systemChat format ["Spawn: %1", _dialog_result select 1];
  12.         If ((_dialog_result select 1) == 0) then {
  13.         _blds = (_this select 0) nearObjects ["House",(parseNumber (_dialog_result select 0))];
  14.             {
  15.             0 = [_x] execVM "tpw_furniture_fnc_populate.sqf";
  16.             } count _blds;
  17.         }
  18.         else
  19.         {
  20.         0 = [(_this select 0),(parseNumber (_dialog_result select 0))] execVM "tpw_furniture_fnc_delete.sqf";
  21.         };
  22.     }] call Ares_fnc_RegisterCustomModule;
Add Comment
Please, Sign In to add comment