I don't need to test my programs. I have an error-correcting modem.

Difference between revisions of "UE3:UTKActor (UDK)"

From Unreal Wiki, The Unreal Engine Documentation Site
Jump to: navigation, search
(Talk)
 
m (1 revision: class descriptions for UDK January update (part 7))
 
(One intermediate revision by one other user not shown)
Line 108: Line 108:
 
{{code|delegate '''OnBreakApart''' ()}}
 
{{code|delegate '''OnBreakApart''' ()}}
  
<!-- enter delegate description -->
+
This delegate is called when this UTKActor breaks
  
 
====OnEncroach====
 
====OnEncroach====

Latest revision as of 05:52, 17 January 2010

UDK Object >> Actor >> DynamicSMActor >> KActor >> UTKActor
Package: 
UTGame
This class in other games:
UT3


Properties[edit]

Property group 'UTKActor'[edit]

bBreakWhenCausingDamage[edit]

Type: bool

If true, this KActor will break when it causes damage

bDamageOnEncroachment[edit]

Type: bool

If true, this will cause Damage on Encroachment (DOE)

bHasHealth[edit]

Type: bool

If true, this vehicle has health

bResetDOEWhenAsleep[edit]

Type: bool

If true bDamageOnEncroachment will reset when this actor sleeps or falls below a threshold

BrokenTemplate[edit]

Type: ParticleSystem

Emitter template to use when this object breaks

bTakeDamageOnEncroachment[edit]

Type: bool

Should this KActor take damage when it encroaches

DmgTypeClass[edit]

Type: class<DamageType>

When causing damage, use this damage type

Default value: Class'Engine.DmgType_Crushed'

DOEResetThreshold[edit]

Type: int

This is the velocity threshhold at which the DOE will reset. If set to 0, it will only reset on sleep

Default value: 40

EncroachDamage_Other[edit]

Type: int

How much damage this actor does upon contact

EncroachDamage_Self[edit]

Type: int

How much should it take

Health[edit]

Type: int

How much health this actor has before it's destroyed

Internal variables[edit]

bBroken[edit]

Type: bool

Modifiers: repnotify

If true, this actor is broken and no longer functional

InstigatorController[edit]

Type: Controller

Allows things to pass along a damage instigator

Subobjects[edit]

MyLightEnvironment[edit]

Class: Engine.DynamicLightEnvironmentComponent

Inherits from: KActor.MyLightEnvironment

No new values.

StaticMeshComponent0[edit]

Class: Engine.StaticMeshComponent

Inherits from: KActor.StaticMeshComponent0

Property Value
ReplacementPrimitive None

Delegates[edit]

OnBreakApart[edit]

delegate OnBreakApart ()

This delegate is called when this UTKActor breaks

OnEncroach[edit]

delegate bool OnEncroach (Actor Other)


Functions[edit]

Events[edit]

EncroachingOn[edit]

event bool EncroachingOn (Actor Other)

Overrides: Actor.EncroachingOn

(Description copied from Actor.EncroachingOn)
called when this Actor is encroaching on Other and we couldn't find an appropriate place to push Other to

Returns:

true to abort the move, false to allow it

Warning: do not abort moves of PHYS_RigidBody actors as that will cause the Unreal location and physics engine location to mismatch

ReplicatedEvent[edit]

simulated event ReplicatedEvent (name VarName)

Overrides: KActor.ReplicatedEvent


TakeDamage[edit]

event TakeDamage (int Damage, Controller EventInstigator, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType, optional Actor.TraceHitInfo HitInfo, optional Actor DamageCauser)

Overrides: KActor.TakeDamage

Default behaviour when shot is to apply an impulse and kick the KActor.

Other instance functions[edit]

BreakApart[edit]

function BreakApart ()