EVENT DISPLAYACCESS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
Line 3: Line 3:
EVENT_DISPLAYACCESS is a [[EDuke32_event_list|Game Event]].
EVENT_DISPLAYACCESS is a [[EDuke32_event_list|Game Event]].


This event is run whenever the keycard animation is played onscreen (by default triggered when using an access card on a keycard slot).  
This event is run whenever the keycard animation is played onscreen, i.e. when [[access_incs]] is greater than 0 (by default triggered when using an access card on a keycard slot).  


If RETURN is set to -1, the animation is disabled, and the currently active weapon will still be displayed.
If RETURN is set to -1, the animation is disabled, and the currently active weapon will still be displayed.

Latest revision as of 11:21, 4 February 2022

Event ID player# THISACTOR RETURN
EVENT_DISPLAYACCESS screenpeek player->i 1 value

EVENT_DISPLAYACCESS is a Game Event.

This event is run whenever the keycard animation is played onscreen, i.e. when access_incs is greater than 0 (by default triggered when using an access card on a keycard slot).

If RETURN is set to -1, the animation is disabled, and the currently active weapon will still be displayed.

If RETURN is set to 1, the animation is disabled, but the weapon will remain hidden until access_incs is 0.