Skip to content

map-api

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: 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,
}
record spawn-transform {
position: vec3,
yaw: f32,
}