Health Vial item
Item defined in items/sh_health_vial.lua
Defines the Health Vial medical item for the Metropolice Force and Overwatch factions, which heals one and a half
times Schema:GetHealAmount and has a Give option that runs the CharHeal command on another character.
Summary
Methods
Runs the
CharHeal command with this item when the Give option is chosen.OnDrop(player, position)shared
Lets the item be dropped; nothing else happens.
Heals the player by
Schema:GetHealAmount times 1.5, capped at max health, and fires the PlayerHealed hook.Methods
Runs the CharHeal command with this item when the Give option is chosen.
Parameters
- player
- name
Lets the item be dropped; nothing else happens.
Parameters
- player
- position
Heals the player by Schema:GetHealAmount times 1.5, capped at max health, and fires the PlayerHealed hook.
Parameters
- player
- itemEntity