map-api
Functions
Section titled “Functions”| Function | Summary |
|---|---|
list-spawns |
The loaded map’s declared spawn points (position + facing; yaw in RADIANS, so the values feed straight back into entity.spawn). |
list-spawns
Section titled “list-spawns”list-spawns: async func() -> list<spawn-transform>;The loaded map’s declared spawn points (position + facing; yaw in RADIANS, so the values feed straight back into entity.spawn). Returns a single engine-default fallback when the map declares none, so a gamemode always has at least one usable spawn.
record vec3 { x: f32, y: f32, z: f32,}spawn-transform
Section titled “spawn-transform”record spawn-transform { position: vec3, yaw: f32,}