Defines the Medical Penlight item of the Diseases plugin, a reusable diagnostic tool that tells its user whether
the player being looked at is blind or colour blind.
Summary
Methods
OnDrop(player, position)shared
Lets the item be dropped, with no extra effect.
Examines the eyes of the player being looked at and reports any blindness.
Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_eyelight.lua:37Lets the item be dropped, with no extra effect.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/diseases/plugin/items/sh_eyelight.lua:18Examines the eyes of the player being looked at and reports any blindness.
Always returns false, so the penlight is never used up.
Parameters
- player
- itemEntity