OnPlayerStateChange: Difference between revisions
From Onset Developer Wiki
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Server|1.0}} | {{Info|Event|Server|1.0}} | ||
{{FuncDescription| | {{FuncDescription|Called when the player state changes. [[PlayerState]]}} | ||
{{FuncSyntax|OnPlayerStateChange(player, newstate, oldstate)}} | {{FuncSyntax|OnPlayerStateChange(player, newstate, oldstate)}} |
Latest revision as of 11:19, 1 September 2020
Description
Called when the player state changes. PlayerState
Syntax
OnPlayerStateChange(player, newstate, oldstate)
Parameters
- player
The player who changes state. - newstate
The new state of the player. - oldstate
The old state of the player.
Example
__EDIT_ME__