Exit_Normal

Usage

Teleports the player to the next map defined for this map in MAPINFO and to the player start spot whose arg0 matches pos. If you are making a vanilla-style doom map, just use 0.

Note that the map will not immediately exit as soon as this command is encountered; instead, a flag will be set that causes the map to exit during processing of the next tic. Therefore, if there are any further commands in the ACS script it's present in, they will be executed up until the first delay. To ensure that the script halts immediately at this command, make it the final command within its script or put a terminate/delay(1) command immediately after it.

Examples

This command is generally used on lines or sectors, and less often in scripts. However, some unusual situations can be created using scripting. A locked exit can be made by using a script and accessing it with a ACS_LockedExecute special.

Another example is an exit which can be activated, for example by turning on a power generator.

Script 1 controls access to the exit. It should be set to a switch and flagged as repeatable. Script 10 restores the power to the area. The sector tag is passed as a parameter, and it raises the light level there to represent the lights coming back on with the power.