Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames

Engine.SeqEvent_TakeDamage

Extends
SequenceEvent
Modifiers
native ( Sequence )

Activated when a certain amount of damage is taken. Allows the designer to define how much and which types of damage should be be required (or ignored). Originator: the actor that was damaged Instigator: the actor that did the damaging Copyright 1998-2011 Epic Games, Inc. All Rights Reserved.

Core.Object
|   
+-- Engine.SequenceObject
   |   
   +-- Engine.SequenceOp
      |   
      +-- Engine.SequenceEvent
         |   
         +-- Engine.SeqEvent_TakeDamage

Variables Summary
floatCurrentDamage
SeqEvent_TakeDamage
boolbResetDamageOnToggle
floatDamageThreshold
array<class<DamageType>>DamageTypes
array<class<DamageType>>IgnoreDamageTypes
floatMinDamageAmount
Inherited Variables from Engine.SequenceEvent
ActivationTime, bClientSideOnly, bEnabled, bPlayerOnly, bRegistered, DuplicateEvts, Instigator, MaxTriggerCount, MaxWidth, Originator, Priority, ReTriggerDelay, TriggerCount
Inherited Variables from Engine.SequenceOp
ActivateCount, bActive, bAutoActivateOutputLinks, bHaveMovingInputConnector, bHaveMovingOutputConnector, bHaveMovingVarConnector, bLatentExecution, bPendingInputConnectorRecalc, bPendingOutputConnectorRecalc, bPendingVarConnectorRecalc, EventLinks, GamepadID, InputLinks, OutputLinks, PlayerIndex, SearchTag, VariableLinks

Structures Summary
Inherited Structures from Engine.SequenceOp
SeqEventLink, SeqOpInputLink, SeqOpOutputInputLink, SeqOpOutputLink, SeqVarLink

Functions Summary
eventint GetObjClassVersion ()))
function HandleDamage (Actor inOriginator, Actor inInstigator, class<DamageType> inDamageType, int inAmount))
functionbool IsValidDamageType (class<DamageType> inDamageType))
function Reset ()))
event Toggled ()))
Inherited Functions from Engine.SequenceEvent
CheckActivate, RegisterEvent, Reset, Toggled
Inherited Functions from Engine.SequenceOp
Activated, ActivateNamedOutputLink, ActivateOutputLink, Deactivated, ForceActivateInput, ForceActivateOutput, GetBoolVars, GetController, GetInterpDataVars, GetLinkedObjects, GetObjectVars, GetPawn, HasLinkedOps, LinkedVariables, PopulateLinkedVariableValues, PublishLinkedVariableValues, Reset, VersionUpdated


Variables Detail

CurrentDamage Source code

var float CurrentDamage;
Current damage amount

SeqEvent_TakeDamage

bResetDamageOnToggle Source code

var(SeqEvent_TakeDamage) bool bResetDamageOnToggle;
Should the damage counter be reset if this event is toggled?

DamageThreshold Source code

var(SeqEvent_TakeDamage) float DamageThreshold;
Total amount of damage to take before activating the event

DamageTypes Source code

var(SeqEvent_TakeDamage) array<class<DamageType>> DamageTypes<AllowAbstract>;
Types of damage that are counted

IgnoreDamageTypes Source code

var(SeqEvent_TakeDamage) array<class<DamageType>> IgnoreDamageTypes<AllowAbstract>;
Types of damage that are ignored

MinDamageAmount Source code

var(SeqEvent_TakeDamage) float MinDamageAmount<autocomment=true>;
Damage must exceed this value to be counted


Functions Detail

GetObjClassVersion Source code

static event int GetObjClassVersion ( ) )
Return the version number for this class. Child classes should increment this method by calling Super then adding a individual class version to the result. When a class is first created, the number should be 0; each time one of the link arrays is modified (VariableLinks, OutputLinks, InputLinks, etc.), the number that is added to the result of Super.GetObjClassVersion() should be incremented by 1.
@return the version number for this specific class.

HandleDamage Source code

function HandleDamage ( Actor inOriginator, Actor inInstigator, class<DamageType> inDamageType, int inAmount) )
Applies the damage and checks for activation of the event.

IsValidDamageType Source code

final function bool IsValidDamageType ( class<DamageType> inDamageType) )
Searches DamageTypes[] for the specified damage type. Default case is to return true for no damage types listed. This makes workflow a lot faster as you do not need to add a damage type each time you use this event.

Reset Source code

function Reset ( ) )

Toggled Source code

event Toggled ( ) )


Defaultproperties

defaultproperties
{
	ObjName="Take Damage"
	ObjCategory="Actor"

	DamageThreshold=100.f
	VariableLinks(1)=(ExpectedType=class'SeqVar_Float',LinkDesc="Damage Taken",bWriteable=true)

	bResetDamageOnToggle=TRUE
}

Overview Package Class Source Class tree Glossary
previous class      next class frames      no frames
Creation time: ti 22-3-2011 19:56:56.784 - Created with UnCodeX