I think you’ve made a mistake in your tree, but the tree is working as expected.
Please allow me to point the mistake:
1) You are setting the “_IsEnemyDead” to be equal to “isDead” variable, which is “FALSE” in the blackboard.
2) You are checking “If _IsEnemyDead == False”, which it is, since you just set it to “isDead” (which is false).
3) You are setting “_IsEnemyDead” back to true and this is why it is shown as true in the blackboard on the right, but at the time the Conditional Decorator was checked, it was false.
So the problem here, is that within 1 frame, you are setting the variable to false, checking it against false (which returns true), and finally setting it back to true.
Let me know.
Thanks.
Join us on Discord: https://discord.gg/97q2Rjh
Attachments:
TreeOrder.png
Login
Register
By registering on this website you agree to our Privacy Policy.