EVENT RESETPLAYER: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Added text
 
mNo edit summary
 
(5 intermediate revisions by 4 users not shown)
Line 1: Line 1:
EVENT_RESETPLAYER is a Game Event.
{{EventTable|1=EVENT_RESETPLAYER|2=player being reset|3=[[i|player->i]]|4=0 values}}
EVENT_RESETPLAYER is a [[EDuke32_event_list|Game Event]].


This event is called when you press 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.


Category:Events
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]]

Latest revision as of 12: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