Advertisement
Veticus

Arma 3* Camping Script [For Fun]

Sep 29th, 2014
313
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.88 KB | None | 0 0
  1. /*
  2. This is my little camping script haha just for fun. All you need is knowledge on Global Variables and a marker call "Camping_Zone". Nothing special but why not ay.
  3. */
  4.  
  5. /*
  6. ---------------
  7. Author: Veticus;
  8. ---------------
  9. Script: Camping.sqf;
  10. ---------------
  11. */
  12.  
  13. DL_Camping_CampStart = {
  14. private ["_CampingZone", "_Fireplace"];
  15.  
  16. _CampingZone = getMarkerPos "Camping_Zone";
  17.  
  18. if (player distance _CampingZone < 50) then {
  19. _Fireplace = "Campfire_burning_F" createVehicle (getPos player);
  20.  
  21. if (player distance _FirePlace <= 7) then {
  22. _Fireplace addAction ["Remove Fireplace", {[] call DL_Camping_CampEnd;}, "true"];
  23. };
  24. };
  25. };
  26.  
  27. DL_Camping_CampEnd = {
  28. private ["_FirePlaceSelect"];
  29.  
  30. _FirePlaceSelect = nearestObject [(getPos player), "Campfire_burning_F"];
  31.  
  32. if (alive player) then {
  33. deleteVehicle _FirePlaceSelect;
  34. removeAllActions player;
  35. };
  36. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement