Description

While investigating an issue with enum comparisons breaking when the enum changes, I discovered that the comparison will not return true if set to "contains NOT EQUAL values" and the values are not equal. Instead it fails, as if they were equal.

The opposite is true as well; it returns True for "contains EQUAL values" if the values are different.

Repro steps were put together a bit fast, so let me know if something needs clarification

Steps to Reproduce

You can download the project here: [Link Removed]

1. Create thirdperson template project
2. Create an enum with two values
3. Create a BB with two Enum keys
4. Create a BT
5. In the BT, add a composite with a Compare Blackboard Entries decorator
6. Set the Blackboard keys in the Compare Decorator to the two enum values
7. In the Third Person Character BP, get the AI controller and run the BT
8. Add two 'Set Value As Enum' nodes with different Enum values (NOTE: this requires you to use variables for the Enum created earlier, just setting the number will not work)
9. Add a Third Person Character with the AI into the level
10. Simulate
11. Look at the BT

Have Comments or More Details?

Head over to the existing Questions & Answers thread and let us know what's up.

0
Login to Vote

Fixed
ComponentUE - AI
Affects Versions4.7.54.8
Target Fix4.8
Fix Commit2523449
Release Commit2531498
CreatedApr 17, 2015
ResolvedApr 23, 2015
UpdatedApr 27, 2018