User:Crusha/UltimateMappingTools/HealVolume

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to navigation Jump to search
UT2004 Volume >> HealVolume (custom)
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

Type: class<Pawn>

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

function PostBeginPlay ()

See if we use TriggerHeal or HealOverTime and put us in the right state.

Reset

function Reset ()

Set bActive to what it was when the match was started.

States

HealOverTime

Modifiers: auto

HealOverTime.Timer

function Timer ()

Heal every second.

HealOverTime.Trigger

function Trigger (Actor Other, Pawn EventInstigator)

Start healing every second.

HealOverTime.UnTrigger

function UnTrigger (Actor Other, Pawn EventInstigator)

Stop healing every second.

TriggerHeal

TriggerHeal.Trigger

function Trigger (Actor Other, Pawn EventInstigator)

Heal on triggering.