Mostly Harmless
User:Crusha/UltimateMappingTools/HealVolume
Volume >> HealVolume (custom) |
Contents
- Package:
- UltimateMappingTools
Volume that allows to heal player or vehicles inside it.
Properties
Property group 'HealVolume'
bActive
Type: bool
If True, the Volume will heal from the beginning.
bSuperHeal
Type: bool Heals up to SuperHealth like Keg and Vials do.
bTriggerHeal
Type: bool
If True, the health will only be added to pawns that are inside at the moment the Volume is triggered. If False, it will heal over time.
HealAmount
Type: int
How much to heal per second or per triggering.
HealClass
Heal actors of the following class, including subclasses. For example choose "Vehicle" for vehicles, "xPawn" for players or "Pawn" for both.
Internal variables
bOldActive
Type: bool
For resetting.
Instance functions
PostBeginPlay
See if we use TriggerHeal or HealOverTime and put us in the right state.
Reset
Set bActive to what it was when the match was started.
States
HealOverTime
Modifiers: auto
HealOverTime.Timer
Heal every second.
HealOverTime.Trigger
Start healing every second.
HealOverTime.UnTrigger
Stop healing every second.
TriggerHeal
TriggerHeal.Trigger
Heal on triggering.