Jump to content

SetDeadSpectator: Difference between revisions

Added a note about this bug: https://zandronum.com/tracker/view.php?id=2594#c17993
(Created page with "{{Template:ACSWarning}} int '''SetDeadSpectator'''(int playernumber, bool state) ==Usage== Turns a player that is alive into a dead spectator or vice versa. This function wi...")
 
(Added a note about this bug: https://zandronum.com/tracker/view.php?id=2594#c17993)
Line 4: Line 4:
==Usage==
==Usage==
Turns a player that is alive into a dead spectator or vice versa.  This function will only effect Dead Spectators or players that are alive, not True Spectators.  If sv_DeadPlayersCanKeepInventory is set, the Dead Spectator will be resurrected with the inventory he had before he died.  If sv_SameSpawnSpot is set and you are using Zandronum 3.1 the Dead Spectator will be resurrected at his current location.
Turns a player that is alive into a dead spectator or vice versa.  This function will only effect Dead Spectators or players that are alive, not True Spectators.  If sv_DeadPlayersCanKeepInventory is set, the Dead Spectator will be resurrected with the inventory he had before he died.  If sv_SameSpawnSpot is set and you are using Zandronum 3.1 the Dead Spectator will be resurrected at his current location.
Note: When a player is set as spectator, they're disassociated from the corpse entirely. This means that, if called when the player is killed, it will not finish their corpse animation. A workaround for this is to remove the corpse and spawn a dummy actor in its place that just plays the same animation.


==Parameters==
==Parameters==