Advertisement
Guest User

Untitled

a guest
Feb 11th, 2016
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.68 KB | None | 0 0
  1.     case _interactionKey:
  2.     {
  3.         if(!life_action_inUse) then {
  4.             [] spawn
  5.             {
  6.                 private["_handle"];
  7.                 _handle = [] spawn life_fnc_actionKeyHandler;
  8.                 waitUntil {scriptDone _handle};
  9.                 life_action_inUse = false;
  10.             };
  11.         };
  12.         if(!life_action_gathering && (vehicle player == player) && playerSide == civilian) then
  13.         {
  14.             {
  15.                 _str = [_x] call life_fnc_varToStr;
  16.                 _val = missionNameSpace getVariable _x;
  17.                 if(_val > 0 ) then{
  18.                     switch(_str)do{
  19.                         case "pickaxe":
  20.                                     {                          
  21.                                         [] spawn
  22.                                         {
  23.                                             private["_farmen_a"];
  24.                                             _farmen_a = [] spawn life_fnc_pickAxeUse;
  25.                                             waitUntil {scriptDone _farmen_a};
  26.                                             life_action_gathering = false;
  27.                                         };
  28.                                     };
  29.                         case "shovel":
  30.                                     {                          
  31.                                         [] spawn
  32.                                         {
  33.                                             private["_farmen_b"];
  34.                                             _farmen_b = [] spawn life_fnc_shovelUse;
  35.                                             waitUntil {scriptDone _farmen_b};
  36.                                             life_action_gathering = false;
  37.                                         };
  38.                                     };                     
  39.                         case "axe":
  40.                                     {                          
  41.                                         [] spawn
  42.                                         {
  43.                                             private["_farmen_c"];
  44.                                             _farmen_c = [] spawn life_fnc_axeUse;
  45.                                             waitUntil {scriptDone _farmen_c};
  46.                                             life_action_gathering = false;
  47.                                         };
  48.                                     };                     
  49.                         case "schlauch":
  50.                                     {                          
  51.                                         [] spawn
  52.                                         {
  53.                                             private["_farmen_d"];
  54.                                             _farmen_d = [] spawn life_fnc_schlauchUse;
  55.                                             waitUntil {scriptDone _farmen_d};
  56.                                             life_action_gathering = false;
  57.                                         };
  58.                                     };                     
  59.                     };
  60.                 };
  61.             } foreach life_inv_items;
  62.         };
  63.     };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement