trigger_changelevel

startdisabled 
mapindex

trigger_changelevel has two added features in Quoth. If “startdisabled” is set to 1, the changelevel won’t be active until triggered via its targetname. Once activated it must then be touched to work as normal.
This simply allows for the player to exit through the same location they entered the map.

The “mapindex” key is used with the Session Mapindex feature in Quoth. The Session Mapindex is a value which is preserved between maps to track which maps the player has visited, and is read by the info_mapgate and info_endgate entities. trigger_changelevel is the way to modify the Session Mapindex; when you leave a map through a trigger_changelevel, a test is carried out to check whether the session mapindex already has any of the bits set from the trigger_changelevel’s mapindex. If the two values have no bits in common, the value in the mapindex key is added to the Session Mapindex. Typically, the mapindex field on the trigger_changelevel has just a single bit set (a power of two value), meaning the Session Mapindex is guaranteed to have that bit set after exiting the map.

<-Back to the tutorial

Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.