OnPlayerSkydive: Difference between revisions
From Onset Developer Wiki
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnPlayerSkydive()}} == Example == __EDIT_ME__ {{RelatedFunctions}} {{ClientEvents}}" |
mNo 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|Called when the player starts to skydive.}} | ||
{{FuncSyntax|OnPlayerSkydive()}} | {{FuncSyntax|OnPlayerSkydive()}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
function PlayerSkydive() | |||
AddPlayerChat("Good luck.") | |||
SetPostEffect("DepthOfField", "Distance", 0.05) | |||
end | |||
AddEvent("OnPlayerSkydive", PlayerSkydive) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{ParachuteClientEvents}} |
Latest revision as of 08:47, 16 January 2020
Description
Called when the player starts to skydive.
Syntax
OnPlayerSkydive()
Example
function PlayerSkydive()
AddPlayerChat("Good luck.")
SetPostEffect("DepthOfField", "Distance", 0.05)
end
AddEvent("OnPlayerSkydive", PlayerSkydive)