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..." |
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 streams in the pickup.}} | ||
{{FuncSyntax|OnPickupStreamIn(pickup)}} | {{FuncSyntax|OnPickupStreamIn(pickup)}} | ||
{{FuncParameters}} | {{FuncParameters}} | ||
{{FuncParam|pickup|The | {{FuncParam|pickup|The pickup identifier which streamed in.}} | ||
== Example == | == Example == | ||
<syntaxhighlight lang="Lua"> | |||
AddEvent("OnPickupStreamIn", function(pickupId) | |||
print("Player streamed in pickup "..pickupId..".") | |||
end) | |||
</syntaxhighlight> | |||
{{RelatedFunctions}} | {{RelatedFunctions}} | ||
{{ | {{Template:PickupEvents}} |
Latest revision as of 18:44, 3 December 2019
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)