Difference between revisions of "GameOver"
From Nomad DB
Wasdennnoch (talk | contribs) (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''' ([[ | + | * '''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 == | ||
− | |||
<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())