Defines the alcohol_base base item for alcoholic drinks: drinking one boosts the item's attributes and makes the player drunk for expireTime seconds, then calls the item's optional OnDrink.

Summary

Methods

Called when a player drops the drink; does nothing, so dropping is allowed.
Boosts the item's attributes and makes the player drunk for expireTime seconds, then calls OnDrink.

Methods

Called when a player drops the drink; does nothing, so dropping is allowed.

Parameters

  • player
  • position

ITEM:OnUse(player, itemEntity)

shared gamemodes/catwork/gamemode/core/items/sh_alcohol_base.lua:13

Boosts the item's attributes and makes the player drunk for expireTime seconds, then calls OnDrink.

Parameters

  • player
  • itemEntity

Defined in