OnPickupCreated

From Onset Developer Wiki
Revision as of 21:26, 6 October 2020 by BlueMountains (talk | contribs) (Created page with "{{Info|Event|Server|1.3.0}} {{FuncDescription|Event called when an pickup instance was created through CreatePickup.}} {{FuncSyntax|OnPickupCreated(pickup)}} {{FuncPara...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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