Advertisement
iLogann

player_buildingMaint.sqf

Jul 30th, 2014
261
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. private ["_objectID","_objectUID","_obj"];
  2.  
  3. if(DZE_ActionInProgress) exitWith { cutText [(localize "str_epoch_player_52") , "PLAIN DOWN"]; };
  4. DZE_ActionInProgress = true;
  5.  
  6. player removeAction s_player_maint_build;
  7. s_player_maint_build = 1;
  8.  
  9. _obj = _this select 3;
  10.  
  11. _objectID = _obj getVariable ["ObjectID","0"];
  12.  
  13. _objectUID = _obj getVariable ["ObjectUID","0"];
  14.  
  15. if(_objectID == "0" && _objectUID == "0") exitWith {DZE_ActionInProgress = false; s_player_maint_build = -1; cutText [(localize "str_epoch_player_50"), "PLAIN DOWN"];};
  16.  
  17. [1,1] call dayz_HungerThirst;
  18. player playActionNow "Medic";
  19. [player,20,true,(getPosATL player)] spawn player_alertZombies;
  20.  
  21. cutText [format[(localize "STR_EPOCH_ACTIONS_4"), 1], "PLAIN DOWN", 5];
  22. PVDZE_maintainArea = [player,2,_obj];
  23. publicVariableServer "PVDZE_maintainArea";
  24.  
  25. DZE_ActionInProgress = false;
  26. s_player_maint_build = -1;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement