# Why can't I get this enum check to work?

**URL:** <https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489>\
**Category:** Blueprint\
**Tags:** unreal-engine, question\
**Created:** [January 5, 2024, 10:02pm UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489 "2024-01-05T22:02:09Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 5, 2024, 10:02pm UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/1 "2024-01-05T22:02:09Z")

</div>

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/3/e/53e0e43348e5aac70c5b058b51d7fb11d6ac6eab.webp "EnumCheck") ](https://vimeo.com/900262089)

The situation is you have two NPCs walk up and punch the TPC. In the first half of the video you see there is no reaction by the TPC to their punches. This is with the check being on, looking for the punch state. However you can see by the print string on the video that the “NPCATTACKSTATEENUM” seems to be working properly.

 ![Image3](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/d/d/6dd4ad7cab6800d70be90efa6b4bd5d9ba1eb056.jpeg)  
 ![Image4](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/b/2/4b2f503c16529a904aaf9d31e11e7ed52a3eabc2.jpeg)

BUT, as you see in the second half of the video, the enum check is off and the TPC responds to their punches.

I don’t get this, all I can figure is there must be a syncronization or timing issue. But attempts to put delays with the set and or with the check at small intervals have not proven successful.

Here is the ENUM.

 ![Image5](https://d3kjluh73b9h9o.cloudfront.net/original/4X/6/3/a/63a05520cdc75efce3dcf715395162e0e3b8f161.jpeg)  
 ![Image7](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/c/5/4c5702c3977481e48557b71e79fc749e1a9220d2.jpeg)

What do you think is happening here? What I’m trying to do is make the detection more selective…is it a punch, kick or other…so that stuff like just walking through an NPC doesn’t trigger false hits / reactions by the TPC.

Any help is appreciated, thank you.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 7, 2024, 4:00pm UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/2 "2024-01-07T16:00:14Z")

</div>

Bump bump.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 7, 2024, 7:28pm UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/3 "2024-01-07T19:28:13Z")

</div>

No enum fans I take it. Bump!!!

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 8, 2024, 11:13am UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/4 "2024-01-08T11:13:48Z")

</div>

bump

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 9, 2024, 6:51am UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/5 "2024-01-09T06:51:11Z")

</div>

Any ideas anyone? Thanks.

---

<div class="post-metadata">

**Author:** ![usa423](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/usa423/32/918773_2.png) [@usa423](https://forums.unrealengine.com/u/usa423)\
**Post date:** [January 10, 2024, 8:35am UTC](https://forums.unrealengine.com/t/why-cant-i-get-this-enum-check-to-work/1591489/6 "2024-01-10T08:35:34Z")

</div>

bump bump
