Good evening, guys
I’m making a system via blueprints to make the player focus his aim on an enemy whenever he presses a button and (&&) there is an enemy around (pretty much every Dark Souls game has something similar). The player can’t focus if there isn’t an enemy around, naturally, but after I find the *first enemy in the game *(and only after, not before), the player now can turn on the aim lock even if there is no enemy around him. I just want to fix this, since the rest is working as intended. I’m using IsValid for this. My bet is that the IsValid is returning true, even if the variable I’m checking (CurrentFocusedEnemy) is set to None. But why?
Here is the blueprint section for this behavior
Thanks in advance!