OnPickupDestroyed

From Onset Developer Wiki
Revision as of 20:43, 31 August 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a pickup instance was destroyed through DestroyPickup.}} {{FuncSyntax|OnPickupDestroyed(pickup)}} {{Func...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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