Hierarchy

Methods

  • Called when an doodad is being picked up

    Returns

    False if the doodad cannot be picked up, or undefined to use the default logic

    Parameters

    • human: default<number>

      The human object

    Returns undefined | boolean

  • Emitted when the doodad is created.

    Parameters

    Returns any

  • Called when the entity is created in the game Also called for players that "rejoin" the game

    Returns void

  • Parameters

    • durability: number
    • oldDurability: number

    Returns any

  • Parameters

    • durability: number
    • oldDurability: number

    Returns any

  • Emitted when the fire stage of this doodad changes.
    Note: The fire stage of doodads is not saved, so when the doodad's fire stage is first checked on load, this event will be emitted.

    Parameters

    Returns any

  • Called when an entity is killed by another entity.

    Parameters

    Returns void

  • Emitted when the doodad is removed.

    Returns any

  • Called when the entity is removed from the game

    Returns void

  • Called when the entity is renamed

    Returns void

  • Emitted when the doodad's type changes.

    Parameters

    Returns any

Generated using TypeDoc