Difference between revisions of "OnPlayerSkydive"

From Onset Developer Wiki
(Add function description, example and related functions.)
m
 
Line 13: Line 13:
 
AddEvent("OnPlayerSkydive", PlayerSkydive)
 
AddEvent("OnPlayerSkydive", PlayerSkydive)
 
</syntaxhighlight>
 
</syntaxhighlight>
 +
 
{{RelatedFunctions}}
 
{{RelatedFunctions}}
* [[OnPlayerSkydiveCrash]]
+
{{ParachuteClientEvents}}
* [[OnPlayerCancelSkydive]]
 

Latest revision as of 09:47, 16 January 2020

OnPlayerSkydive

Type: Event
Context: Client
Introduced: v1.0

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)

See also