Code FIRSTPACK: 100 credits for $5 or 200 for $10, for the first 1000 orders. Credits never expire. See packs
Left Mouse ButtonPressedReleasedKeyDo OnceResetStart ClosedfalseCompletedSequencethen_0then_1DelayDuration0.8Get Actor LocationTargetReturn ValueGet Actor Forward VectorTargetReturn Value×AB150.0Return Value+ABReturn ValueSphereTraceStartEndRadius60.0TraceChannel0bTraceComplexFalsebIgnoreSelfTrueOutHitReturn ValueBreak Hit ResultHitHitActorBranchConditionelseApply DamageDamagedActorBaseDamage25.0EventInstigatorDamageCauserDamageTypeClass

Melee Attack

Ready to pasteCombat12 nodes, 15 wiresGallery

Left click sphere-traces 150 units ahead and applies 25 damage to what it hits, once per 0.8 second swing.

Make one like this

Planning is free. Building the graph costs 10 credits, and a free account starts with 50.

Use this exact graph

Copy and Apply for gallery graphs come with every paid plan, from $9.99 a month. See plans

Before you paste0

Nothing to set up. Open your Blueprint’s Event Graph, press Ctrl+V and compile.

Good to know. Apply Damage hits whatever the trace finds first, not only enemies. The actor that is hit needs Event AnyDamage to react, as in Health & Damage System.

How it works

  1. One swing at a timeIA_Attack goes through Do Once, so a new swing can't start until the last one is over.
  2. Trace aheadSequence runs the hit check first: a sphere trace with a 60 unit radius from the character to 150 units in front.
  3. Deal damageIf the trace hits, Apply Damage deals 25 to the actor it hit.

More combat blueprints

See all 55

Made with Cosindra Blueprint Studio