OnPickupStreamIn: 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|__EDIT_ME__}}
{{FuncDescription|This function is called when a player streams in the pickup.}}


{{FuncSyntax|OnPickupStreamIn(pickup)}}
{{FuncSyntax|OnPickupStreamIn(pickup)}}
Line 9: Line 9:


== Example ==
== Example ==
__EDIT_ME__
<syntaxhighlight lang="Lua">
AddEvent("OnPickupStreamIn", function(pickupId)
    print("Player streamed in pickup "..pickupId..".")
end)
</syntaxhighlight>


{{RelatedFunctions}}
{{RelatedFunctions}}
{{ClientEvents}}
{{Template:PickupEvents}}

Latest revision as of 18:44, 3 December 2019

OnPickupStreamIn

Type: Event
Context: Client
Introduced: v1.0

Description

This function is called when a player streams in the pickup.

Syntax

OnPickupStreamIn(pickup)

Parameters

  • pickup
    The pickup identifier which streamed in.

Example

AddEvent("OnPickupStreamIn", function(pickupId)
    print("Player streamed in pickup "..pickupId..".")
end)

See also