OnPlayerLeaveWater: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnPlayerLeaveWater()}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ClientEvents}}"
 
28days (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{Info|Event|Client|1.0}}
{{Info|Event|Client|1.0}}


{{FuncDescription|__EDIT_ME__}}
{{FuncDescription|This function is called when a player leaves the water.}}


{{FuncSyntax|OnPlayerLeaveWater()}}
{{FuncSyntax|OnPlayerLeaveWater()}}


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPlayerLeaveWater", function ()
    AddPlayerChat("You have left the ocean.")
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ClientEvents}}
{{PlayerClientEvents}}

Latest revision as of 18:07, 16 January 2020

OnPlayerLeaveWater

Type: Event
Context: Client
Introduced: v1.0

Description

This function is called when a player leaves the water.

Syntax

OnPlayerLeaveWater()

Example

AddEvent("OnPlayerLeaveWater", function ()
    AddPlayerChat("You have left the ocean.")
end)

See also