Skip to content
On this page

Athena.systems.inventory.equip

Functions

invoke

Usage

Athena.systems.inventory.equip.invoke(event, player, item): void

Invoke a specific event for listening to a specific item type being equipped / unequipped

Export

Parameters

NameType
eventstring | number
playerPlayer
itemStoredItem

Returns

void

Defined in

server/systems/inventory/equip.ts:22


on

Usage

Athena.systems.inventory.equip.on<T>(event, dbName, cb): void

Listen for a when a specific item is equipped or unequipped

Export

Type parameters

NameType
T{}

Parameters

NameType
eventstring | number
dbNamestring
cb(player: Player, item: StoredItemEx<T>) => void

Returns

void

Defined in

server/systems/inventory/equip.ts:42

Created by Stuyk | Est. 2020