EVENT RESETGOTPICS: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Document this event.
 
No edit summary
Line 2: Line 2:


EVENT_RESETGOTPICS is a [[EDuke32_event_list|Misc Event]].
EVENT_RESETGOTPICS is a [[EDuke32_event_list|Misc Event]].
This event is triggered when mirrors are being drawn, directly after the mirror's EVENT_DISPLAYROOMS call. Hence, this event executes at framerate, rather than ticrate.
It is also triggered one final time during the transition when the mirrors are out of view and not being rendered anymore.


The purpose of this event is to allow mods to reset entries in the [[gotpic]] array to 0. An entry in the gotpic array is 1 if the tile in question has been observed onscreen by the player.
The purpose of this event is to allow mods to reset entries in the [[gotpic]] array to 0. An entry in the gotpic array is 1 if the tile in question has been observed onscreen by the player.

Revision as of 04:13, 1 September 2023

Event ID player# THISACTOR RETURN
EVENT_RESETGOTPICS -1 -1 0 values

EVENT_RESETGOTPICS is a Misc Event.

This event is triggered when mirrors are being drawn, directly after the mirror's EVENT_DISPLAYROOMS call. Hence, this event executes at framerate, rather than ticrate.

It is also triggered one final time during the transition when the mirrors are out of view and not being rendered anymore.

The purpose of this event is to allow mods to reset entries in the gotpic array to 0. An entry in the gotpic array is 1 if the tile in question has been observed onscreen by the player.

This is primarily useful for skyboxes, which are rendered in place of the null tile (HOM effect under normal circumstances). This can be set up such that if gotpic for the skybox tilenum is 0, the skybox view is no longer displayed, thus improving performance.