Skip to main content

POIType and POIDisplayMode

These tables describe points of interest (POIs): the markers the game draws in the world and on the map, like the waypoint marker. POIType picks the kind of marker and POIDisplayMode picks where it is shown.

Available on: Server, Client (the tables exist on both sides, but only the client can create POIs)

Values​

POIType​

The kind of marker, which decides how the game draws it. Some types belong to specific game systems (the comments in the table say so); they can still be created from a script, but they are drawn the way that system draws them.

Used by World.SpawnPOI(position, type, displayMode, minDistance, maxDistance) (client). The POI is only created in the local player's game, it is not synced to other players. The value is passed to the game as is, without checking it against the table.

NameValueMeaning
POIType.UserPlaced0The player's own map waypoint.
POIType.Grenade2The grenade warning marker (normally used by the grenade system).
POIType.LockOnTarget3A lock-on target marker (normally used by the weapon system).
POIType.WeaponReticleAuto6The automatic weapon reticle marker.
POIType.DesignerPlaceable12A general purpose marker, the kind level designers place for objectives.
POIType.SupplyDrop15A supply drop marker (normally used by supply drops).
POIType.JaviBall16A mission marker from Javi's tomb missions (the ball).
POIType.Plunger17A plunger (detonator) marker.
POIType.PressurePlate18A pressure plate marker.
POIType.JaviTomb19A mission marker from Javi's tomb missions (the tomb).
POIType.Demon20A demon marker.

POIDisplayMode​

Where the POI is shown.

Used by World.SpawnPOI(position, type, displayMode, minDistance, maxDistance) (client).

NameValueMeaning
POIDisplayMode.World0Only in the 3D world (on the screen, over its position).
POIDisplayMode.Map1Only on the map.
POIDisplayMode.WorldAndMap2Both in the world and on the map.

Example

-- client: mark a meeting point in the world and on the map, visible from 10 m to 2 km away
local poi = World.SpawnPOI(vec3(2851.6, 541.1, -9920.1), POIType.DesignerPlaceable, POIDisplayMode.WorldAndMap, 10, 2000)

-- remove it later
Timer.Set(function()
poi:Destroy()
end, 60000, 1)