# Attack Button (Solved)

**URL:** <https://forums.unrealengine.com/t/attack-button-solved/445093>\
**Category:** UI\
**Tags:** unreal-engine, Widget, UE4, question, Blueprint, UMG\
**Created:** [March 11, 2019, 5:41pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093 "2019-03-11T17:41:17Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Witherbrine98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Witherbrine98](https://forums.unrealengine.com/u/Witherbrine98)\
**Post date:** [March 11, 2019, 5:41pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/1 "2019-03-11T17:41:17Z")

</div>

I need a little help here. I’m trying to make a UMG Button that makes it so I can attack in front of me. I’ve already made how it functions, as seen here:

 ![271037-screenshot-9.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/1/8/c/18c7f74164091f14b0b0ce89c5cacdb42f69df72.png)

And here’s the UI that I’m using, as well as the Blueprint I’ve made so far:

 ![271038-screenshot-10.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/a/f/4af925a95237874fa9c2c6e8d8d8e5e4af709079.png)

 ![271039-screenshot-11.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/5/d/d5d6f9abd1f14f201d7679c1b1278ac1b928c0cb.png)

If anyone can tell me how to make this work, that’ll be great. For clarification, the first screenshot is in my Character blueprint while the latter two are part of the Widget I’m using.

Thank you very much in advance.

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 11, 2019, 7:11pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/2 "2019-03-11T19:11:40Z")

</div>

So you want the widget button trigger the same sequence of nodes as the X key does?

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [March 11, 2019, 7:12pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/3 "2019-03-11T19:12:49Z")

</div>

> So you want the widget button trigger  
> the same sequence of nodes as the X  
> key does?

If that’s the case, create a Custom Event and connect it to the same nodes as the X button. In the widget, call that event.

---

<div class="post-metadata">

**Author:** ![Witherbrine98](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Witherbrine98](https://forums.unrealengine.com/u/Witherbrine98)\
**Post date:** [March 11, 2019, 8:43pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/4 "2019-03-11T20:43:57Z")

</div>

Hey, that worked! Thank you! 🙂

---

<div class="post-metadata">

**Author:** ![araz01](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/araz01/32/1028814_2.png) [@araz01](https://forums.unrealengine.com/u/araz01)\
**Post date:** [May 14, 2021, 12:27pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/5 "2021-05-14T12:27:00Z")

</div>

Hi, Could You Guys Show An Example Of This In Action, Im Very New, Thanks

---

<div class="post-metadata">

**Author:** ![Everynone](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/everynone/32/1135017_2.png) [@Everynone](https://forums.unrealengine.com/u/Everynone)\
**Post date:** [May 14, 2021, 4:04pm UTC](https://forums.unrealengine.com/t/attack-button-solved/445093/6 "2021-05-14T16:04:07Z")

</div>

![338821-screenshot-2.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/f/0/6f0ad3d61b1d2febfa28fcede9cb53b80b019881.png)
