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.
20 results for combat
Pattern: 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.
Apply Point DamageUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoPattern: Variables CurrentWave(int)=0, EnemiesAlive(int)=0, EnemiesPerWave(Array<int>). StartWave: CurrentWave++ → SET EnemiesAlive=EnemiesPerWave[CurrentWave]. Timer looping: Branch(SpawnedThisWave < EnemiesPerWave[CurrentWave]) → SpawnActor(EnemyClass, RandomSpawnPoint) → SpawnedThisWave++. OnEnemyDeath: EnemiesAlive-- → Branch(EnemiesAlive <= 0) → StartNextWave or Victory.
Pattern: BP_Projectile with SphereCollision(root), StaticMesh, ProjectileMovementComponent(InitialSpeed=3000, MaxSpeed=3000, bRotationFollowsVelocity=true). OnComponentHit → ApplyDamage(OtherActor, Damage, GetInstigatorController, Self) → SpawnEmitterAtLocation(ImpactPoint) → DestroyActor. Spawner: SpawnActorFromClass(BP_Projectile, MuzzleLocation, MuzzleRotation).
Call on the SkeletalMeshComponent. Get it via GetMesh() on Character. Returns montage length. Exec out is 'then'.
PlayMontageUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoA blocking collision between two shapes. Fires OnHit on both actors. Use for solid impacts.
Dealing damage: Event → ApplyDamage(TargetActor, BaseDamage, InstigatorController, DamageCauser, DamageTypeClass). Receiving: EventAnyDamage → Damage output → Subtract_FloatFloat(CurrentHealth, Damage) → FClamp(Result, 0, MaxHealth) → SET CurrentHealth → Branch(CurrentHealth <= 0) → True: DestroyActor. Initialize CurrentHealth=MaxHealth in BeginPlay.
ACharacter::Jump. Respects JumpZVelocity from CharacterMovement.
JumpUE 5.0, 5.1, 5.2, 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo agoJumpUE 5.3, 5.4, 5.5, 5.6, 5.7updated 2mo ago