OnPickupStreamIn: Difference between revisions

From Onset Developer Wiki
Created page with "{{Info|Event|Client|1.0}} {{FuncDescription|__EDIT_ME__}} {{FuncSyntax|OnPickupStreamIn(pickup)}} {{FuncParameters}} {{FuncParam|pickup|The pickupidentifier which streamed..."
 
28days (talk | contribs)
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|__EDIT_ME__}}
{{FuncDescription|This function is called when a player streams in the pickup.}}


{{FuncSyntax|OnPickupStreamIn(pickup)}}
{{FuncSyntax|OnPickupStreamIn(pickup)}}


{{FuncParameters}}
{{FuncParameters}}
{{FuncParam|pickup|The pickupidentifier which streamed in.}}
{{FuncParam|pickup|The pickup identifier which streamed in.}}


== 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