EVENT DISPLAYOVERHEADMAPPLAYER: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Document the event. This event determines the tile of the player on the overhead map display.
 
mNo edit summary
Line 5: Line 5:
This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag <code>GAMETYPE_OTHERPLAYERSINMAP</code> is set.
This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag <code>GAMETYPE_OTHERPLAYERSINMAP</code> is set.


[[RETURN]] is set to the current player overhead tilenum. Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.
[[RETURN]] is set to the current player overhead tilenum. By default, this is an animation that plays between tilerange 1400 to 1402, with the sprite animating while the player is on the ground and moving.
 
Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.


[[Category:Events]]
[[Category:Events]]

Revision as of 10:04, 4 February 2022

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

EVENT_DISPLAYOVERHEADMAPPLAYER is a Game Event.

This event is executed once for each player sprite that is present on the overhead map. Other players are only visible if the gametype flag GAMETYPE_OTHERPLAYERSINMAP is set.

RETURN is set to the current player overhead tilenum. By default, this is an animation that plays between tilerange 1400 to 1402, with the sprite animating while the player is on the ground and moving.

Change RETURN to alter the tile that is displayed for the current player on the automap, or set it to -1 to disable the display of the sprite entirely.