The three virtues of a programmer: Laziness, Impatience, and Hubris. – Larry Wall

UE2:BreakableItem (U2)

From Unreal Wiki, The Unreal Engine Documentation Site

Jump to: navigation, search
U2 Object >> Actor >> Decoration >> BreakableItem

Contents

Package: 
Legend
Direct subclasses:
IconNode, MineBase
This class in other games:
U2XMP

BreakableItem.

[edit] Properties

[edit] Property group 'BreakableItem'

[edit] bDestroyCollision

Type: bool


Default value: True

[edit] BreakParticleEffectsRefs

Type: ParticleGenerator

Array size: 6


[edit] BreakSound

Type: Sound


[edit] BrokenMesh

Type: Mesh


[edit] BrokenStaticMesh

Type: StaticMesh


[edit] bShakeView

Type: bool

set this to enable the following.

[edit] DamageAmount

Type: float


[edit] DamageRadius

Type: float


[edit] DamageType

Type: class<DamageType>


[edit] Momentum

Type: float


[edit] Property group 'ShakeView'

[edit] AmbientSoundStr

Type: string

sound for duration of quake

[edit] BaseTossMagnitude

Type: float

toss Magnitudenitude at epicenter, 0 at radius

Default value: 2500000.0

[edit] bTossNPCs

Type: bool

if true, NPCs in area are tossed around

Default value: True

[edit] bTossPCs

Type: bool

if true, PCs in area are tossed around

Default value: True

[edit] Duration

Type: float

how long quake should last

Default value: 10.0

[edit] MaxTossedMass

Type: float

if bTossPawns true, only pawns <= this mass are tossed

Default value: 500.0

[edit] Radius

Type: float

radius of quake

Default value: 2048.0

[edit] ShakeMagnitude

Type: float

How much to shake the camera.

Default value: 20.0

[edit] ShakeSoundStr

Type: string

sound for each shake

[edit] TimeBetweenShakes

Type: float

time between each shake

Default value: 0.5

[edit] Internal variables

[edit] InitialHealth

Type: int


[edit] Default values

Property Value
bDamageable True
bProjTarget True
bStatic False
Health 20

[edit] Functions

[edit] Events

[edit] PreBeginPlay

event PreBeginPlay ()

Overrides: Actor.PreBeginPlay


[edit] TakeDamage

event TakeDamage (int Damage, Pawn InstigatedBy, Object.Vector HitLocation, Object.Vector Momentum, class<DamageTypeDamageType)

Overrides: Decoration.TakeDamage


[edit] Other instance functions

[edit] BreakApart

function BreakApart ()


[edit] GetDescription

interface function string GetDescription (Controller User)

Overrides: Actor.GetDescription


[edit] GetUseIconIndex

interface function int GetUseIconIndex (Controller User)

Overrides: Actor.GetUseIconIndex


[edit] GetUsePercent

interface function float GetUsePercent (Controller User)

Overrides: Actor.GetUsePercent


[edit] HasUseBar

interface function bool HasUseBar (Controller User)

Overrides: Actor.HasUseBar


[edit] ParticleExplosionRef

function ParticleExplosionRef (ParticleGenerator Effect)


[edit] ShakeView

function ShakeView ()


Personal tools