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| | {{FuncDescription|This function is called when a player streams in the pickup.}} | ||
{{FuncSyntax|OnPickupStreamIn(pickup)}} | {{FuncSyntax|OnPickupStreamIn(pickup)}} | ||
Line 9: | Line 9: | ||
== 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)