mirror of
https://github.com/EpochModTeam/Epoch.git
synced 2024-08-30 18:22:13 +00:00
use only SHIPWRECK type
This commit is contained in:
parent
8986729467
commit
68e33cf4f0
@ -17,7 +17,7 @@ private ["_shipwrecks","_item","_markers"];
|
||||
//[[[end]]]
|
||||
if (getNumber(configFile >> "CfgEpoch" >> worldname >> "shipwreckLootEnabled") isEqualTo 1) then {
|
||||
_worldSize = worldSize/2;
|
||||
_shipwrecks = nearestTerrainObjects [ [_worldSize, _worldSize], [], _worldSize, false ];
|
||||
_shipwrecks = nearestTerrainObjects [ [_worldSize, _worldSize], ["SHIPWRECK"], _worldSize, false ];
|
||||
if (count _shipwrecks > 12) then {
|
||||
_shipwrecks = (_shipwrecks call BIS_fnc_arrayShuffle) resize 12;
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user