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}}" |
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| | {{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}} |
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)