Defines the Eye Surgery Kit medical item of the Diseases plugin, sold to holders of the Q heavy medicaments
flag, which is applied to the player being looked at and cures their blindness or colour blindness.
Summary
Methods
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Operates on the player being looked at, curing blindness or colour blindness.
Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_blindness_surgerykit.lua:38Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_blindness_surgerykit.lua:19Operates on the player being looked at, curing blindness or colour blindness.
The kit is used up even when the patient has neither. Returns false, keeping the kit, when no
player is looked at.
Parameters
- player
- itemEntity