Defines the Pack of Allergy Tablets medical item (allergy_tablet) of the Diseases plugin, which cures an allergy
30 to 60 seconds after it is given to the player being looked at with its Give action, while swallowing it oneself
cures gastritis instead.
Summary
Methods
Gives a tablet to the player being looked at with "Give", curing their allergy after a delay.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the player's allergy after 30 to 60 seconds and fires
PlayerHealed.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_allergy_tablet.lua:31Gives a tablet to the player being looked at with "Give", curing their allergy after a delay.
Fires PlayerHealed with the giver as the healer. Returns false when no player is looked at.
Parameters
- player
- name
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_allergy_tablet.lua:50Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_allergy_tablet.lua:19Cures the player's allergy after 30 to 60 seconds and fires PlayerHealed.
Parameters
- player
- itemEntity