This site has been archived and made available for preservation purposes. No edits can be made.
SetRespawn
(Difference between revisions)
Return to current revision
-
-
Sets the default respawn time for [wiki="Player"]Players[/wiki].
-
+
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].
-
[h="2"] Declaration [/h]
[highlight=cpp]
-
-
VAULTSCRIPT void (*SetRespawn)(vaultmp::Interval);
-
+
VAULTSCRIPT VAULTSPACE Void (*VAULTAPI(SetRespawn))(VAULTSPACE Interval) VAULTCPP(noexcept);
[/highlight]
[highlight=c]
-
native SetRespawn(interval);
[/highlight]
[h="2"] Parameters [/h]
-
-
[b][wiki="Interval"]vaultmp::Interval[/wiki][/b] - the time after a [wiki]Player[/wiki] shall respawn in milliseconds
-
+
[b][wiki="Interval"]Interval[/wiki][/b] - the time after a [wiki]Player[/wiki] will respawn in milliseconds after death
-
[h="2"] Return value [/h]
None.
[h="2"] Related pages [/h]
-
-
[list][*][wiki]SetPlayerRespawn[/wiki]
-
+
[list][*][wiki]DEFAULT_PLAYER_RESPAWN[/wiki]
[*][wiki]SetPlayerRespawn[/wiki]
-
[/LIST]
[category]VaultMP interface[/category]
[category]Scripting functions[/category]
-
-
[category]Misc functions[/category]
-
+
[category]Game functions[/category]