Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _RandomSafePosition = [[worldSize / 2, worldSize / 2, 0], 0, worldSize, 0, 0, 5, 0, [], []] call BIS_fnc_findSafePos;
- Cache = createVehicle ["VirtualReammoBox_camonet_F", _RandomSafePosition, [], 150, "NONE"];
- // CACHE ITEMS WILL GO HERE WIP
- _CacheArea = createMarker ["CacheAreaMarker", _RandomSafePosition];
- _CacheArea setMarkerShape "ELLIPSE";
- _CacheArea setMarkerSize [150, 150];
- _CacheArea setMarkerColor "ColorBlue";
- CacheAreaCoordinates = mapGridPosition _RandomSafePosition;
- CachePreciseCoordinates = mapGridPosition getPos Cache;
- 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];
- sleep 1;
- [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;
- TaskActive = True;
- waitUntil {(player distance Cache < 10) && (TaskActive == True)};
- TaskActive = False;
- 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];
- deleteMarker "CacheAreaMarker";
- ["FindCacheTask", "SUCCEEDED", True] call BIS_fnc_taskSetState;
- waitUntil {(player distance Cache > 50) && (TaskActive == False)};
- deleteVehicle Cache;
- execVM "scripts\Hidden Cache\HCreset.sqf"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement