EVENT DISPLAYPOINTER

From EDukeWiki
Revision as of 06:15, 4 February 2022 by Doom64hunter (talk | contribs) (this has 3 return values)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Event ID player# THISACTOR RETURN
EVENT_DISPLAYPOINTER screenpeek player->i 3 values

EVENT_DISPLAYPOINTER is a Game Event.

This event is called when the Wii port cursor for aiming is being displayed.

Gamevar RETURN is set to the pointer's picnum. Modifying this value will change the tile that is displayed.

Setting RETURN to -1 disables hardcoded drawing of the cursor completely.

See also EVENT_DISPLAYCROSSHAIR.

Return Values

It is possible to change the tile, as well as the position of the pointer.

userdef.return 0 (RETURN)
Set to the crosshair picnum, default is 2523. Change this to alter the pointer sprite displayed onscreen.
userdef.return 1
Contains the x-position of the pointer.
userdef.return 2
Contains the y-position of the pointer.