Difference between revisions of "GameOver"

From Nomad DB
(Created page with "Plays a game over animation before reloading the last autosave. == Syntax == <syntaxhighlight lang="lua"> GameOver(playerId) </syntaxhighlight> * '''playerId''' ([[Player ID]...")
 
m
 
Line 5: Line 5:
 
GameOver(playerId)
 
GameOver(playerId)
 
</syntaxhighlight>
 
</syntaxhighlight>
* '''playerId''' ([[Player ID]]): ID of the target player
+
* '''playerId''' (number): [[PlayerId|ID]] of the target player
  
 
Note: It seems that only the [[GetLocalPlayerId|local player ID]] works on this function.
 
Note: It seems that only the [[GetLocalPlayerId|local player ID]] works on this function.
  
 
== Example ==
 
== Example ==
The example below checks whether the [[EntityId|entity ID]] of the local player is valid or not.
 
 
<syntaxhighlight lang="lua">
 
<syntaxhighlight lang="lua">
 
GameOver(GetLocalPlayerId())
 
GameOver(GetLocalPlayerId())

Latest revision as of 19:38, 14 April 2020

Plays a game over animation before reloading the last autosave.

Syntax

GameOver(playerId)
  • playerId (number): ID of the target player

Note: It seems that only the local player ID works on this function.

Example

GameOver(GetLocalPlayerId())

Related Pages