Skip to content
On this page

Athena.controllers.itemDrops

Functions

append

Usage

Athena.controllers.itemDrops.append(itemDrop): string

Append item drop information to the server.

Do not use this for creating item drops the players can pickup.

These are mostly visual. Refer to Athena.systems.inventory.drops to make actual item drops.

Returns a uid or generates one if not specified.

Parameters

NameType
itemDropItemDrop

Returns

string

Defined in

server/controllers/itemDrops.ts:37


override

Usage

Athena.controllers.itemDrops.override(functionName, callback): any

Used to override any item drop streamer functionality.

Parameters

NameType
functionName"append"
callback(itemDrop: ItemDrop) => string

Returns

any

Defined in

server/controllers/itemDrops.ts:74

Usage

Athena.controllers.itemDrops.override(functionName, callback): any

Used to override any item drop streamer functionality.

Parameters

NameType
functionName"remove"
callback(id: string) => boolean

Returns

any

Defined in

server/controllers/itemDrops.ts:75


remove

Usage

Athena.controllers.itemDrops.remove(id): boolean

Removes an item drop in-world.

Parameters

NameType
idstring

Returns

boolean

Defined in

server/controllers/itemDrops.ts:53

Created by Stuyk | Est. 2020