OnPlayerLeaveWater: Difference between revisions

From Onset Developer Wiki
Chloe (talk | contribs)
mNo edit summary
28days (talk | contribs)
No edit summary
 
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}}
{{PlayerClientEvents}}
{{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