Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- case _interactionKey:
- {
- if(!life_action_inUse) then {
- [] spawn
- {
- private["_handle"];
- _handle = [] spawn life_fnc_actionKeyHandler;
- waitUntil {scriptDone _handle};
- life_action_inUse = false;
- };
- };
- if(!life_action_gathering && (vehicle player == player) && playerSide == civilian) then
- {
- {
- _str = [_x] call life_fnc_varToStr;
- _val = missionNameSpace getVariable _x;
- if(_val > 0 ) then{
- switch(_str)do{
- case "pickaxe":
- {
- [] spawn
- {
- private["_farmen_a"];
- _farmen_a = [] spawn life_fnc_pickAxeUse;
- waitUntil {scriptDone _farmen_a};
- life_action_gathering = false;
- };
- };
- case "shovel":
- {
- [] spawn
- {
- private["_farmen_b"];
- _farmen_b = [] spawn life_fnc_shovelUse;
- waitUntil {scriptDone _farmen_b};
- life_action_gathering = false;
- };
- };
- case "axe":
- {
- [] spawn
- {
- private["_farmen_c"];
- _farmen_c = [] spawn life_fnc_axeUse;
- waitUntil {scriptDone _farmen_c};
- life_action_gathering = false;
- };
- };
- case "schlauch":
- {
- [] spawn
- {
- private["_farmen_d"];
- _farmen_d = [] spawn life_fnc_schlauchUse;
- waitUntil {scriptDone _farmen_d};
- life_action_gathering = false;
- };
- };
- };
- };
- } foreach life_inv_items;
- };
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement