Defines the Pack of Sorbents medical item (sorbent) of the Diseases plugin, which cures diarrhea and restores
health when it is swallowed or given to the player being looked at with its Give action.
Summary
Methods
Gives the sorbents to the player being looked at with "Give", curing their diarrhea and healing them.
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Cures the player's diarrhea, heals them and fires
PlayerHealed.Methods
ITEM:OnCustomFunction(player, name)
server gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_sorbent.lua:32Gives the sorbents to the player being looked at with "Give", curing their diarrhea 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_sorbent.lua:54Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_sorbent.lua:18Cures the player's diarrhea, heals them and fires PlayerHealed.
Parameters
- player
- itemEntity