UB1DestructionComponent
Overview
- Destruction component.
Metadata
| Field | Value |
|---|---|
| Kind | component |
| Environment | B1 - Presentation |
| Category | components |
| Extends | UActorComponent |
Properties (11)
| Name | Type | Description |
|---|---|---|
DestructionSoundName | string | Name of the sound resource to play on destruction. |
GeometryCollectionAsset | UGeometryCollection | GeometryCollection asset used for the destruction effect. |
MinVehicleDestructionSpeed | number | Minimum 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. |
ResetCheckSphere | any | Check sphere used to decide reset delay. |
ResetCheckSphereRadius | number | Reset is delayed if a character/vehicle is within this radius. |
ResetDelay | number | Time (seconds) until it automatically restores after destruction. |
SpawnedGeometryComponent | any | The GeometryCollection component created by the destruction effect. |
TargetComponent | any | The component selected as the destruction target. |
TargetComponentName | string | Name 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. |
VelocityMultiplier | number | Force (impulse) multiplier applied to the destruction effect. Collision speed * this value controls how strongly fragments scatter. |
bDestroyOnVehicleHit | boolean | Whether 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)
| Function | Parameters | Returns | Description |
|---|---|---|---|
OnResetSphereBeginOverlap | OverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult | - | Handles the reset sphere's BeginOverlap. |
OnResetSphereEndOverlap | OverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer | - | Handles the reset sphere's EndOverlap. |
OnTargetBeginOverlap | OverlappedComponent: UPrimitiveComponent, OtherActor: AActor, OtherComp: UPrimitiveComponent, OtherBodyIndex: integer, bFromSweep: boolean, SweepResult: FHitResult | - | Collision handling and destruction logic. |