func_healthcharger
From Valve Developer Community
Contents |
Entity Description
A brush entity wall health recharger (as opposed to a model-based item_healthcharger).
Availability
This brush-based entity is available in: HL2.
In code it is represented by class CWallHealth, defined in hl2_dll\item_healthkit.cpp.
Keyvalues
Parentname:
- Parent
<targetname> - Specifies the targetname of this entity's movement parent. Entities with parents move with their parent.
EnableDisable:
- Start Disabled
<bool> - Stay dormant until activated (probably with the Enable input).
Origin:
- Origin
<origin> - The position of this entity's center in the world. Rotating entities typically rotate around their origin.
Global:
- Global Entity Name
<string> - Name by which this entity is linked to another entity in a different map. When the player transitions to a new map, entities in the new map with global names matching entities in the previous map will have the previous map's state copied over to them.
- _minlight <string>
- Minimum light level.
Inputs
Parentname:
-
SetParent <targetname> - Move with this entity. See Entity Hierarchy (parenting).
-
SetParentAttachment <string> - Attach to a named attachment on the current parent. The entity will teleport so that the position of its root bone matches that of the attachment.
-
SetParentAttachmentMaintainOffset <string> - As above, but without teleporting. The entity retains its position relative to the attachment at the time of the input being received.
-
ClearParent - Removes this entity from its current movement hierarchy.
EnableDisable:
-
Enable -
Disable - Enable/disable this entity from performing its task. It might also disappear from view.
Outputs
- OnPlayerUse
- Fired when the player +USEs the charger.
- OutRemainingHealth
