OnPlayerLeaveWater: Difference between revisions
From Onset Developer Wiki
mNo edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Info|Event|Client|1.0}} | {{Info|Event|Client|1.0}} | ||
{{FuncDescription| | {{FuncDescription|This function is called when a player leaves the water.}} | ||
{{FuncSyntax|OnPlayerLeaveWater()}} | {{FuncSyntax|OnPlayerLeaveWater()}} | ||
== Example == | == Example == | ||
<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
Description
This function is called when a player leaves the water.
Syntax
OnPlayerLeaveWater()
Example
AddEvent("OnPlayerLeaveWater", function ()
AddPlayerChat("You have left the ocean.")
end)