Level Editor/Entities/Map Marker

Revision as of 04:44, 20 October 2026 by TeamSpecBot (talk | contribs) (American spelling)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Map Marker
Made with Functional > Map Marker
What it is A named spot and facing for a gamemode script to read
In the game Yes, it is exported with the map

A Map Marker is a named position and direction that a gamemode script asks for by name: where a training dummy stands and which way it looks, the center of a station, where a prize appears. Because the script uses the name, you can move the marker in the editor without changing the script.

A marker does nothing on its own.

Placing one

  1. Choose Functional > Map Marker.
  2. Click where it goes.
  3. Give it a Marker Name in the inspector.
  4. It faces the arrow at its feet; turn it with the Rotate tool.

Inspector

Setting Type Default What it does
Marker Name Text empty (the node's name) The name a script asks for. It must be unique in the map: if two markers share a name, the game keeps the first.

In a script

api.marker(name) is where it stands, api.marker_facing(name) the way it faces (level, one meter long), and api.markers() lists every marker. A name the map does not have gives the origin and a line in the log.

TeamSpec Level Editor
Basics Getting started · Interface · Viewport and camera · Selecting and hiding · Keyboard shortcuts · Settings · Map Config · Troubleshooting
Menus File · Edit · View · Tools · Functional
Panels Scene tree · Inspector · Materials · Props · Snapping · UV editor · Displacement · Terrain
Tools Move, Rotate and Scale · Box · Sphere · Cylinder · Prism · Stairs · Spiral Stairs · Spiral Tower · Arch · Path Brush · Plane · Terrain · Clip · Duplicate · Ruler and Cordon · Edit Vertex and Edge · Edit Face · Loop Cut · Material Brush · Vertex Color Brush · Displacement · Prop Path
Entities Brush · Zone · Group · Mirror Node · Prop · Spawn Point · Supply Pickup · World Boundary · Lights · Water · Sounds · Anchor Platform · Payload Track · Boss Spawn · Map Marker · World Text · Decal · Door · Button · Logic entities · 3D Skybox · Nav Region
Workflows Your first map · Brushes and CSG · Materials and UVs · Lighting and lightmaps · Bots and navigation · Mirrored maps · Outputs and logic · Custom assets · Playtesting · Exporting and publishing · Importing Source maps
Scripting Overview · Server rules · Client HUD · Bots · Teams and spawning · Zones · Pickups · Payload tracks · Map entities · Sandbox limits · Testing · King of the Hill · Team Deathmatch · API reference · What a script may use