EVENT RESETGOTPICS

From EDukeWiki
Revision as of 03:13, 1 September 2023 by Doom64hunter (talk | contribs)
Jump to navigation Jump to search
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.