a3_exile_occupation/scripts/deleteMapMarkers.sqf
second_coming 9213ec24ca Tidied file structure
Added old Dayz style helicrashes
2016-03-30 09:33:25 +01:00

16 lines
400 B
Plaintext

for "_i" from 1 to SC_numberofLootCrates do
{
_markerName = format ["loot_marker_%1", _i];
_pos = getMarkerPos _markerName;
if(!isNil "_pos") then
{
_nearPlayers = (count (_pos nearEntities [['Exile_Unit_Player'],15]));
if(_nearPlayers > 0) then
{
deleteMarker _markerName;
diag_log format ["[OCCUPATION:LootCrates]:: marker %1 removed at %2",_markerName,time];
};
};
};