Knowledge base
Knowledge base
Knowledge base
Free, anonymous browsing of Unreal Engine Blueprint examples, node references, and best practices. The same content the WoalzCraft plugin uses to generate Blueprints.
25 results for Hit
Requires Simulation Generates Hit Events on physics body.
Event HitUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoA blocking collision between two shapes. Fires OnHit on both actors. Use for solid impacts.
Geometry used for hit-tests and physics. Often simpler than the visual mesh for performance.
OnComponentHitUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoUGameplayStatics::BreakHitResult. Most important outputs: bBlockingHit, ImpactPoint, ImpactNormal, HitActor, HitComponent.
Break Hit ResultUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoApply Point DamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoPattern: Attack input → Branch(bCanAttack) → PlayMontage(AttackMontage) → SET bCanAttack=false. AnimNotify during montage: GetActorLocation + GetActorForwardVector*AttackRange → SphereTraceMulti(Loc, Loc+Forward*Range, AttackRadius) → ForEach hit: Branch(HitActor != Self AND not already hit) → ApplyDamage(HitActor, Damage). OnMontageEnded → SET bCanAttack=true.
Pure node. HitActor is the actor that was hit — cast it to use its interface.
BreakHitResultUE 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoEvent PointDamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 3mo agoPattern: LineTraceByChannel → Branch(hit=true) → BreakHitResult → SpawnSystemAtLocation(SystemTemplate=NS_Impact, Location=ImpactPoint, Rotation=MakeRotFromX(ImpactNormal), Scale=(1,1,1), bAutoDestroy=true). Use MakeRotFromX with ImpactNormal to orient effect to surface normal. NS_ prefix is convention for Niagara Systems. SpawnSystemAtLocation is in UNiagaraFunctionLibrary. bAutoDestroy=true means the component cleans itself up after the effect completes.