Level Editor/Entities/Map Marker: Difference between revisions

Level Editor: Map Marker page
 
American spelling
 
Line 5: Line 5:
| exported = yes
| exported = yes
}}
}}
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 centre 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 '''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.
A marker does nothing on its own.
Line 21: Line 21:


== In a script ==
== In a script ==
[[Level Editor/Scripting/Reference/GamemodeServerApi#marker|api.marker(name)]] is where it stands, [[Level Editor/Scripting/Reference/GamemodeServerApi#marker_facing|api.marker_facing(name)]] the way it faces (level, one metre long), and [[Level Editor/Scripting/Reference/GamemodeServerApi#markers|api.markers()]] lists every marker. A name the map does not have gives the origin and a line in the log.
[[Level Editor/Scripting/Reference/GamemodeServerApi#marker|api.marker(name)]] is where it stands, [[Level Editor/Scripting/Reference/GamemodeServerApi#marker_facing|api.marker_facing(name)]] the way it faces (level, one meter long), and [[Level Editor/Scripting/Reference/GamemodeServerApi#markers|api.markers()]] lists every marker. A name the map does not have gives the origin and a line in the log.


{{Level Editor nav}}
{{Level Editor nav}}