Func healthcharger
From Valve Developer Community
| Table of contents |
[edit]
Entity Description
A brush entity wall health recharger (as opposed to a model-based item_healthcharger).
[edit]
Availability
This brush-based entity is available in: HL2.
In code it is represented by class CWallHealth (http://doxygen.page.needed/class_c_wall_health.html), defined in hl2_dll\item_healthkit.cpp (http://doxygen.page.needed/item__healthkit_8cpp-source.html).
[edit]
Keyvalues
- parentname <target_destination>
- Specifies the targetname of this entity's Parent in a movement hierarchy. Child entities mimic the movements of their Parent.
- StartDisabled
- <boolean>
- origin
- <origin> The position of this entity's center in the world. Rotating entities rotate around their origin.
- globalname
- <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 globalnames matching entities in the previous map will have the previous map's state copied over their state.
- _minlight <string>
- Minimum light level.
[edit]
Inputs
- SetParent <target_destination>
- Changes the entity's parent in the movement hierarchy.
- SetParentAttachment <string>
- Change this entity to attach to a specific attachment point on its parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment.
- SetParentAttachmentMaintainOffset <string> [Episode One Update]
- Change this entity to attach to a specific attachment point on it's parent. Entities must be parented before being sent this input. The parameter passed in should be the name of the attachment. The entity will maintain it's position relative to the Parent's Origin and Angles at the time it is attached.
- Removes this entity from its current movement hierarchy.
- Enable
- Enable this entity.
- Disable
- Disable this entity.
[edit]
Outputs
- OnPlayerUse
- Fired when the player +USEs the charger.
- OutRemainingHealth
