Перейти к основному содержанию

Callback.EntityPickUpDropFunction

since: 2.2.1b88

Function used in "EntityPickUpDrop" callback.

Callable

  • EntityPickUpDropFunction(entityUid: number, dropEntityUid: number, item: ItemInstance, count: number): any

  • Parameters

    • entityUid: number

      entity that picked up the item (this callback is currently called only for players)

    • dropEntityUid: number

      dropped item's entity

    • item: ItemInstance

      ItemInstance of the drop entity

    • count: number

      which count of item stack

    Returns any