Skip to main content

map.set_marker

Overview

  • Shows a mod destination marker. On the HUD minimap it puts an icon at the site center or x/y/z, pinned to the minimap edge when out of range. With site_id (and world_map=true) it also swaps that site's pin on the world map to the icon. Calling again with the same id moves the marker. The world map keeps only one such site at a time and shares the slot with freelance order markers. Minimap markers are lost on world change or load; set them again.

Metadata

FieldValue
DisplaySet Map Marker
Categorymap
AccessPublic
ScopeB1Standalone
TagsExperimental
Aliases—

Parameters

NameTypeRequiredDefaultDescription
idstringyes—Marker id chosen by the caller (e.g. mymod.target)
site_idnameno—Site to mark (its center is used)
xfloatno—World X in cm, when site_id is omitted
yfloatno—World Y in cm, when site_id is omitted
zfloatno—World Z in cm, when site_id is omitted
icon_idstringno—B1Texture2D row id for the icon (default: Common_Icon_Freelance_Order_UIT)
color_idstringno—ColorMapping row id for the icon background (default: Freelance_01)
world_mapboolnotrueAlso mark the site on the world map (site_id only, default true)

Returns

  • Return shape is not declared for this command.

Usage

await inzoi.cli.execute('map.set_marker', {
id: '',
site_id: '', // optional
x: 0.0, // optional
y: 0.0, // optional
z: 0.0, // optional
icon_id: '', // optional
color_id: '', // optional
world_map: true, // optional
});