Skip to main content

PickupDestroyed

Gets called when the server has destroyed a pickup.

Start a script section

!-- OnEvent PickupDestroyed
-- require *evPickup

# Add your instructions here
  • Group: ServerEvents
  • Cancellable: No
  • Event data: PickupDestroyedEventArgs

Injected variables

VariableTypeDescription
*evPickupreference to Pickup objectGets the pickup which is being destroyed.
Remarks: Unity destroys objects at the end of the frame so using the pickup here is fine.