OnPlayerStateChange: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Server|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnPlayerStateChange}} {{FuncParameters}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ServerEven..." |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
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}} | {{FuncSyntax|OnPlayerStateChange(player, newstate, oldstate)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|player|The player who changes state.}} | |||
{{FuncParam|newstate|The new [[PlayerState|state]] of the player.}} | |||
{{FuncParam|oldstate|The old [[PlayerState|state]] of the player.}} | |||
== Example == | == Example == | ||
__EDIT_ME__ | __EDIT_ME__ | ||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{VehicleServerEvents}} |
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__