Registers /CharHeal, which heals the character being looked at with a health_vial, health_kit or bandage from the player's inventory, or repairs a scanner with a power_node.

The target must be within 192 units and the player must not be tied. The amount healed comes from Schema:GetHealAmount, and a successful heal runs the PlayerHealed hook.

Summary

Methods

Heals the character being looked at with the item named in the first argument.

Methods

COMMAND:OnRun(player, arguments)

shared gamemodes/cwhl2rp/schema/commands/sh_charheal.lua:17

Heals the character being looked at with the item named in the first argument.

health_vial, health_kit and bandage heal by Schema:GetHealAmount and run the PlayerHealed hook; power_node fully repairs a scanner.

Parameters

  • player
  • arguments

Defined in