This site has been archived and made available for preservation purposes. No edits can be made.

SetRespawn

(Difference between revisions)
Return to current revision
  1. -
    Sets the default respawn time for [wiki="Player"]Players[/wiki].
  2. +
    Sets the default respawn time for [wiki="Player"]Players[/wiki]. Calling this function has no effect on the respawn times of currently connected [wiki="Player"]Players[/wiki].
  3.  
    [h="2"] Declaration [/h]
    [highlight=cpp]
  4. -
    VAULTSCRIPT vaultmp::Void (*SetRespawn)(vaultmp::Interval);
  5. +
    VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(SetRespawn))(VAULTSPACE Interval) VAULTCPP(noexcept);
    [/highlight]
    [highlight=c]
  6.  
    native SetRespawn(interval);
    [/highlight]
    [h="2"] Parameters [/h]
  7. -
    [b][wiki="Interval"]vaultmp::Interval[/wiki][/b] - the time after a [wiki]Player[/wiki] shall respawn in milliseconds
  8. +
    [b][wiki="Interval"]Interval[/wiki][/b] - the time after a [wiki]Player[/wiki] will respawn in milliseconds after death
  9.  
    [h="2"] Return value [/h]
    None.
    [h="2"] Related pages [/h]
    [list][*][wiki]DEFAULT_PLAYER_RESPAWN[/wiki]
    [*][wiki]SetPlayerRespawn[/wiki]
    [/LIST]
    [category]VaultMP interface[/category]
    [category]Scripting functions[/category]
    [category]Game functions[/category]