Advertisement
Guest User

Untitled

a guest
Dec 19th, 2023
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
SQF 1.73 KB | None | 0 0
  1. _RandomSafePosition = [[worldSize / 2, worldSize / 2, 0], 0, worldSize, 0, 0, 5, 0, [], []] call BIS_fnc_findSafePos;
  2. Cache = createVehicle ["VirtualReammoBox_camonet_F", _RandomSafePosition, [], 150, "NONE"];
  3.  
  4. // CACHE ITEMS WILL GO HERE WIP
  5.  
  6. _CacheArea = createMarker ["CacheAreaMarker", _RandomSafePosition];
  7. _CacheArea setMarkerShape "ELLIPSE";
  8. _CacheArea setMarkerSize [150, 150];
  9. _CacheArea setMarkerColor "ColorBlue";
  10.  
  11. CacheAreaCoordinates = mapGridPosition _RandomSafePosition;
  12. CachePreciseCoordinates = mapGridPosition getPos Cache;
  13. hint parseText format ["<t size='2' color='#FFFF00' weight='bold'>WEAPONS CACHE</t><br />A weapons cache has been located! Secure it for your team before other players find it!<br /><br /><t align='left'>Location: <t color='#FF0000'>%1</t><br /><t align='left'>Difficulty: <t color='#FF0000'>1</t>", CacheAreaCoordinates];
  14. sleep 1;
  15. [True, "FindCacheTask", ["A weapons cache has been located somewhere within the marked area. This cache will contain a few early game weapons and gear for you to start your game with. Reccomended for: New Players", "Find Cache", ""], _RandomSafePosition, "CREATED", -1, True, "", True] call BIS_fnc_taskCreate;
  16. TaskActive = True;
  17.  
  18. waitUntil {(player distance Cache < 10) && (TaskActive == True)};
  19. TaskActive = False;
  20. hint parsetext format ["The cache at coords: <t color='#0000FF'>%1</t> Has been found! The cache <t color='#FF0000'>WILL BE DELETED</t> when you walk over 50m away so take what you need before leaving.", CachePreciseCoordinates];
  21. deleteMarker "CacheAreaMarker";
  22. ["FindCacheTask", "SUCCEEDED", True] call BIS_fnc_taskSetState;
  23.  
  24. waitUntil {(player distance Cache > 50) && (TaskActive == False)};
  25. deleteVehicle Cache;
  26. execVM "scripts\Hidden Cache\HCreset.sqf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement