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
| Field | Value |
|---|---|
| Display | Set Map Marker |
| Category | map |
| Access | Public |
| Scope | B1Standalone |
| Tags | Experimental |
| Aliases | — |
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string | yes | — | Marker id chosen by the caller (e.g. mymod.target) |
| site_id | name | no | — | Site to mark (its center is used) |
| x | float | no | — | World X in cm, when site_id is omitted |
| y | float | no | — | World Y in cm, when site_id is omitted |
| z | float | no | — | World Z in cm, when site_id is omitted |
| icon_id | string | no | — | B1Texture2D row id for the icon (default: Common_Icon_Freelance_Order_UIT) |
| color_id | string | no | — | ColorMapping row id for the icon background (default: Freelance_01) |
| world_map | bool | no | true | Also 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
});