Jump to content

EVENT scripts: Difference between revisions

Added documentation for GAMEEVENT_JOINQUEUECHANGED.
(Added the GAMEEVENT_LEVEL_INIT event.)
(Added documentation for GAMEEVENT_JOINQUEUECHANGED.)
Tag: Source edit
Line 41: Line 41:
;{{Devfeature|3.2|alpha}} GAMEEVENT_LEVEL_INIT 16
;{{Devfeature|3.2|alpha}} GAMEEVENT_LEVEL_INIT 16
:This event is executed early in map initialization, before things are spawned, OPEN scripts executed, etc. This script is usable as a way to manipulate map features early where the regular OPEN script doesn't work. This is not to be confused with said {{Zdoomwiki|Script types#OPEN|OPEN scripts}} which fire when a level initialized, happening much later down the line. The activator is the world.
:This event is executed early in map initialization, before things are spawned, OPEN scripts executed, etc. This script is usable as a way to manipulate map features early where the regular OPEN script doesn't work. This is not to be confused with said {{Zdoomwiki|Script types#OPEN|OPEN scripts}} which fire when a level initialized, happening much later down the line. The activator is the world.
;{{Devfeature|3.2|alpha}} GAMEEVENT_JOINQUEUECHANGED 17
:When a player is added or removed from the join queue. The activator is the world, <tt>arg1</tt> is the number of the player, and <tt>arg2</tt> is their position in line (this is always -1 if they're removed from the join queue).


== Event handling==
== Event handling==