Markers
constMarkers:object
Defined in: client/api.d.ts:780
Markers on the local player’s HUD compass and Pip-Boy map, drawn by the game’s own widgets. Only this client sees them; they go when the resource that made them stops.
Type Declaration
Section titled “Type Declaration”clear()
Section titled “clear()”clear():
void
Removes every marker this resource made.
Returns
Section titled “Returns”void
create()
Section titled “create()”create(
options):number
Adds a marker and returns its ID, or 0 while the local player is in no cell. The compass shows it once placed, a frame or so later; the map from its next refresh, which every Pip-Boy value change brings.
Parameters
Section titled “Parameters”options
Section titled “options”Where, in world units of the worldspace or interior the local player is in now; the marker shows only while the player is there. label: the map’s tooltip. compass and map: where it shows, both by default. kind: the icon, “quest” by default; “custom” is the player’s own map marker, “powerArmor” the power armor one.
compass?
Section titled “compass?”boolean
"quest" | "custom" | "powerArmor"
label?
Section titled “label?”string
boolean
number
number
number
Returns
Section titled “Returns”number
remove()
Section titled “remove()”remove(
id):boolean
Removes a marker. False for an unknown ID.
Parameters
Section titled “Parameters”number
The marker’s ID.
Returns
Section titled “Returns”boolean
setPosition()
Section titled “setPosition()”setPosition(
id,x,y,z):boolean
Moves a marker. False for an unknown ID.
Parameters
Section titled “Parameters”number
The marker’s ID.
number
World units.
number
World units.
number
World units.
Returns
Section titled “Returns”boolean