Resetplayer: Difference between revisions

From EDukeWiki
Jump to navigation Jump to search
Chibi (talk | contribs)
No edit summary
No edit summary
 
(7 intermediate revisions by 5 users not shown)
Line 1: Line 1:
Reset's the current player's x, y according to the start point or, if the game is a multiplayer game, one of the APLAYER sprites.
'''resetplayer'''<br>
'''resetplayerflags''' <flags>


Single Player - 'Scroll Lock' Starting point
Reload the map (if in Single Player) and the player loses his inventory. See also [[EVENT_RESETPLAYER]].


Multiplayer - 'Scroll Lock' Starting point OR 'APLAYER' sprite.
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:Player manipulation]]

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