I'm a doctor, not a mechanic
Difference between revisions of "UE3:SeqEvent TakeDamage (UDK)"
(Talk) |
m (1 revision: class descriptions for UDK January update (part 5)) |
(No difference)
|
Latest revision as of 05:47, 17 January 2010
Object >> SequenceObject >> SequenceOp >> SequenceEvent >> SeqEvent_TakeDamage |
Contents
This is an auto-generated page and may need human attention. Please remove the {{autogenerated}} tag if the page seems reasonably complete or replace it with the {{expand}} tag if the page is not yet complete. |
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
Properties[edit]
Property group 'SeqEvent_TakeDamage'[edit]
bResetDamageOnToggle[edit]
Type: bool
Should the damage counter be reset if this event is toggled?
Default value: True
DamageThreshold[edit]
Type: float
Total amount of damage to take before activating the event
Default value: 100.0
DamageTypes[edit]
Type: array<class<DamageType> >
Types of damage that are counted
IgnoreDamageTypes[edit]
Type: array<class<DamageType> >
Types of damage that are ignored
MinDamageAmount[edit]
Type: float
Damage must exceed this value to be counted
Internal variables[edit]
CurrentDamage[edit]
Type: float
Current damage amount
Default values[edit]
Property | Value | ||||||||
---|---|---|---|---|---|---|---|---|---|
ObjCategory | "Actor" | ||||||||
ObjName | "Take Damage" | ||||||||
VariableLinks[1] |
|
Functions[edit]
Static events[edit]
GetObjClassVersion[edit]
Overrides: SequenceObject.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.
Returns:
- the version number for this specific class.
Events[edit]
Toggled[edit]
Overrides: SequenceEvent.Toggled
Called once this event is toggled via SeqAct_Toggle.
Other instance functions[edit]
HandleDamage[edit]
Applies the damage and checks for activation of the event.
IsValidDamageType[edit]
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[edit]
Overrides: SequenceEvent.Reset