Defines the Pack of Antibiotics medical item (antibiotics) of the Diseases plugin, which cures fever, cough and
pneumonia and restores health when it is swallowed or given to the player being looked at with its Give action.
Summary
Methods
Gives the antibiotics to the player being looked at with "Give", curing and healing them.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures fever, cough or pneumonia, heals the player and fires
PlayerHealed.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_antibiotics.lua:34Gives the antibiotics to the player being looked at with "Give", curing and healing them.
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_antibiotics.lua:58Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_antibiotics.lua:18Cures fever, cough or pneumonia, heals the player and fires PlayerHealed.
Parameters
- player
- itemEntity