OnPickupDestroyed

From Onset Developer Wiki
OnPickupDestroyed

Type: Event
Context: Server
Introduced: v1.2.2

Description

Event called when a pickup instance was destroyed through DestroyPickup.

Syntax

OnPickupDestroyed(pickup)

Parameters

  • pickup
    The pickup which was destroyed.

Example

function OnPickupDestroyed(pickup)
    print("Pickup "..pickup.." was destroyed")
end
AddEvent("OnPickupDestroyed", OnPickupDestroyed)

See also