Defines the Inhaler medical item (ingall) of the Diseases plugin, which cures its user's pneumonia one to two minutes after use; its custom action for treating the player being looked at is listed under another name than the Give its handler reacts to, so only self-use has an effect.

Summary

Methods

Uses the inhaler on the player being looked at with "Use on...", curing their pneumonia after a delay.
Lets the item be dropped, with no extra effect.
Cures the player's pneumonia after one to two minutes and fires PlayerHealed.

Methods

ITEM:OnCustomFunction(player, name)

server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_ingall.lua:31

Uses the inhaler on the player being looked at with "Use on...", curing their pneumonia after a delay.

Fires PlayerHealed with the user as the healer. Returns false when no player is looked at.

Parameters

  • player
  • name

Lets the item be dropped, with no extra effect.

Parameters

  • player
  • position

Cures the player's pneumonia after one to two minutes and fires PlayerHealed.

Parameters

  • player
  • itemEntity

Defined in