OnPlayerPickup
This event is triggered when a player enters a pickup.
C# Syntax
[ServerEvent(Event.PlayerPickup)]
Parameters
- player: parameter input should be in Player type
- pickup: parameter input should be in Pickup type
Example
[ServerEvent(Event.PlayerPickup)]
public void OnPlayerPickup(Player player, Pickup pickup)
{
player.SendChatMessage($"You have entered {pickup.Id}.");
}