Gameplay::disableHospitalRestart: Difference between revisions

From RAGE Multiplayer Wiki
(yay)
 
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.<br><br>- mlgthatsme<br><br>---------------------<br><br>Doesn't work....
The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.<br><br>- mlgthatsme<br><br>---------------------<br><br>Doesn't work....
==Syntax==
==Syntax==
<syntaxhighlight lang="javascript">gameplay.disableHospitalRestart(hospitalIndex, toggle);</syntaxhighlight>
<syntaxhighlight lang="javascript">mp.game.gameplay.disableHospitalRestart(hospitalIndex, toggle);</syntaxhighlight>
=== Required Arguments ===
=== Required Arguments ===
*'''hospitalIndex:''' int
*'''hospitalIndex:''' int
Line 9: Line 9:
==Example==
==Example==
<syntaxhighlight lang="javascript">
<syntaxhighlight lang="javascript">
todo
// todo
</syntaxhighlight>
</syntaxhighlight>
==See also==
==See also==
{{Gameplay_function_c}}
{{Gameplay_functions_c}}
[[Category:Clientside API]]
[[Category:Clientside API]]
[[Category:TODO: Example]]
[[Category:TODO: Example]]

Latest revision as of 10:00, 22 July 2024

The game by default has 5 hospital respawn points. Disabling them all will cause the player to respawn at the last position they were.

- mlgthatsme

---------------------

Doesn't work....

Syntax

mp.game.gameplay.disableHospitalRestart(hospitalIndex, toggle);

Required Arguments

  • hospitalIndex: int
  • toggle: Boolean

Return value

  • Undefined

Example

// todo

See also