EVENT RESETPLAYER: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
No edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{EventTable|1=EVENT_RESETPLAYER|2=player being reset|3=[[i|player->i]]|4=0 values}}
EVENT_RESETPLAYER is a [[EDuke32_event_list|Game Event]].
EVENT_RESETPLAYER is a [[EDuke32_event_list|Game Event]].


This [[event]] is called when the command [[resetplayer]] is used or after the player returns it's initial position in the map. Generally if the player presses USE botton (spacebar as default) after player's death and before another game loaded or started.
This [[event]] is called when the command [[resetplayer]] is used, when a player respawns in multiplayer, when a new map starts or if the player restarts the map.
 
The event is executed '''after''' all player variables and struct members have been reset to their defaults.
 
See also: [[EVENT_INVENTORY]], [[EVENT_RESETINVENTORY]]


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

Latest revision as of 11:23, 5 February 2022

Event ID player# THISACTOR RETURN
EVENT_RESETPLAYER player being reset player->i 0 values

EVENT_RESETPLAYER is a Game Event.

This event is called when the command resetplayer is used, when a player respawns in multiplayer, when a new map starts or if the player restarts the map.

The event is executed after all player variables and struct members have been reset to their defaults.

See also: EVENT_INVENTORY, EVENT_RESETINVENTORY