Skip to main content

UB1DestructionComponent

Overview

  • Destruction component.

Metadata

FieldValue
Kindcomponent
EnvironmentB1 - Presentation
Categorycomponents
ExtendsUActorComponent

Properties (11)

NameTypeDescription
DestructionSoundNamestringName of the sound resource to play on destruction.
GeometryCollectionAssetUGeometryCollectionGeometryCollection asset used for the destruction effect.
MinVehicleDestructionSpeednumberMinimum speed threshold (cm/s) for vehicle destruction. Destroyed only when the vehicle's speed is at or above this. 0 means even a graze destroys it.
ResetCheckSphereanyCheck sphere used to decide reset delay.
ResetCheckSphereRadiusnumberReset is delayed if a character/vehicle is within this radius.
ResetDelaynumberTime (seconds) until it automatically restores after destruction.
SpawnedGeometryComponentanyThe GeometryCollection component created by the destruction effect.
TargetComponentanyThe component selected as the destruction target.
TargetComponentNamestringName of the owner actor's component to use as the destruction target. Usually a StaticMesh; the destruction effect/collision is processed based on the component found here.
VelocityMultipliernumberForce (impulse) multiplier applied to the destruction effect. Collision speed * this value controls how strongly fragments scatter.
bDestroyOnVehicleHitbooleanWhether a vehicle (VehiclePawn) collision triggers destruction. true: destroyed after checking the speed condition on vehicle collision; false: a vehicle collision alone does not destroy it.

Functions (3)

FunctionParametersReturnsDescription
OnResetSphereBeginOverlapOverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult-Handles the reset sphere's BeginOverlap.
OnResetSphereEndOverlapOverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer-Handles the reset sphere's EndOverlap.
OnTargetBeginOverlapOverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult-Collision handling and destruction logic.