Bandage item
Item defined in items/sh_bandage.lua
Defines the Bandage medical item, which heals the user by 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, 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, capped at max health, and fires the PlayerHealed hook.
Parameters
- player
- itemEntity