OnPickupDestroyed: Difference between revisions

From Onset Developer Wiki
(Created page with "{{Info|Event|Server|1.2.2}} {{FuncDescription|Event called when a pickup instance was destroyed through DestroyPickup.}} {{FuncSyntax|OnPickupDestroyed(pickup)}} {{Func...")
 
(No difference)

Latest revision as of 20:43, 31 August 2020

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