Skip to content

HideLevelMapIcons

Hides some of the level’s own map icons from everyone.

opts: mark - one icon by its id (the reference page lists them; the same on every game); or type (a name or a GUID) with x, y and radius - the icons of that type around a place (no radius: the whole level); or x, y and radius alone - every icon around a place. The icon goes from the map and the compass, and a player cannot discover the place while it is hidden; it comes back as the player had it when the rule goes. At most 256 rules.

HideLevelMapIcons(opts)
Parameter Type
opts table the rule

number - the rule’s id, for ShowLevelMapIcons; nil and the reason

-- Kuttenberg's tailors sell nothing on this server
HideLevelMapIcons({type = "tailor", x = 3100, y = 760, radius = 300})
-- one cobbler by its id
HideLevelMapIcons({mark = "36d3b2fe-8b17-48f0-b00c-e4a515d296e8"})

HideLevelMapIconsFor · ShowLevelMapIcons · CreateMapIcon · the Map icons group of the index