Defines the PDB-6 item (rad_checker) of the Radiation plugin, a device that tells a player with at least half of
the Medical attribute the radiation dose (radlevel) of the player or NPC they are looking at from close up.
Summary
Methods
OnDrop(player, position)shared
Called when the PDB-6 is dropped; does nothing, so it can be dropped freely.
Tells the player the radiation dose of the player or NPC they are looking at.
Methods
ITEM:OnDrop(player, position)
shared gamemodes/cwhl2rp/plugins/containmentzones/plugin/items/sh_rad_checker.lua:46Called when the PDB-6 is dropped; does nothing, so it can be dropped freely.
Parameters
- player
- position
ITEM:OnUse(player, itemEntity)
shared gamemodes/cwhl2rp/plugins/containmentzones/plugin/items/sh_rad_checker.lua:19Tells the player the radiation dose of the player or NPC they are looking at.
Requires at least half of the Medical attribute and a target closer than 55 units. The device is kept.
Parameters
- player
- itemEntity