Resetplayer: Difference between revisions
Helixhorned (talk | contribs)  add early return semantics  | 
				Hendricks266 (talk | contribs) No edit summary  | 
				||
| Line 1: | Line 1: | ||
'''resetplayer'''  | '''resetplayer'''<br>  | ||
'''resetplayerflags''' <flags>  | |||
Reload the map (if in Single Player) and the player loses his inventory. See also [[EVENT_RESETPLAYER]].  | Reload the map (if in Single Player) and the player loses his inventory. See also [[EVENT_RESETPLAYER]].  | ||
Also if in Single Player mode, execution of subsequent code is halted in a fashion similar to '''[[return]]'''.  | Also if in Single Player mode, execution of subsequent code is halted in a fashion similar to '''[[return]]'''.  | ||
''flags'' is a [[bitfield]]. Values:  | |||
:1 - Don't ask the player if they want to load the most recent save (if applicable)  | |||
[[Category:Duke3D 1.3/1.5 commands]]  | [[Category:Duke3D 1.3/1.5 commands]]  | ||
[[Category:Player manipulation]]  | [[Category:Player manipulation]]  | ||
Latest revision as of 22:55, 23 September 2015
resetplayer
resetplayerflags <flags>
Reload the map (if in Single Player) and the player loses his inventory. See also EVENT_RESETPLAYER.
Also if in Single Player mode, execution of subsequent code is halted in a fashion similar to return.
flags is a bitfield. Values:
- 1 - Don't ask the player if they want to load the most recent save (if applicable)