Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- _playDest = [_this,0,0] call BIS_fnc_param;
- _locations = allMapMarkers select {_x find "area_" isEqualTo 0};
- _maxLocations = count _locations;
- //Check
- if (_playDest >= _maxLocations) then {
- hint "Wrong Play Destination. Random Generating New";
- _playDest = floor (random [0, _maxLocations]);
- };
- PLAY_LOCATION = _locations select _playDest;
- //Move trigger and create marker for play area.
- //Remove previous marker if any
- if !(isNil PLAY_LOCATION) then {
- deleteMarker PLAY_LOCATION;
- };
- trigger1 setPos (getMarkerPos PLAY_LOCATION);
- _markerName = PLAY_LOCATION;
- _marker = createMarker [_markerName, getMarkerPos PLAY_LOCATION];
- _markerName setMarkerColor "ColorRed";
- _markerName setMarkerText "Play Area";
- _markerName setMarkerType "mil_warning";
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement