DOOM.wad
README.md
DoomExit
Level-exit trigger: when the local player steps onto the exit switch line, it rebuilds the next map in place and moves the player to that map's start, updating DoomGame's spawn point and music track.
Public fields
centerX/centerZ: number— world position of the exit trigger.nextMap: string— the map to load on trigger (e.g.E1M2).triggered: boolean— set once the switch has fired.
Usage
entity(id).component.add("DoomExit", { centerX = 0, centerZ = 0, nextMap = "E1M2" })