OnPickupCreated

From Onset Developer Wiki
OnPickupCreated

Type: Event
Context: Server
Introduced: v1.3.0

Description

Event called when an pickup instance was created through CreatePickup.

Syntax

OnPickupCreated(pickup)

Parameters

  • pickup
    The pickup which was created.

Example

function OnPickupCreated(pickup)
    print("Pickup "..pickup.." was created")
end
AddEvent("OnPickupCreated", OnPickupCreated)

See also