I don't think I'm using the "In Range" float node correctly.

This is for a beat em up style game. What I’m trying to do is check the third person character’s Y axis for their capsule component’s world location from within the enemy blueprint. And if the Enemy get’s within 50 units up or down of that Y, branch it a true or false condition, then logic can be implented to move toward player or not. And down the road, check that vector length and if far enough and in range the enemy can dash attack.

This print string is firing constantly as if the branch is doing nothing. Did I do this right for this node? Thanks!

Hello USA,

I’m reading that logic as ‘Get the Y value of the players capsule’ (Let’s say the Y value is 333)

Is the value of Y (333) within (333-50) and (333+50)? → This will always be true for any Y value.

There is a ‘Distance (Vector)’ node that might be useful here. (It takes player location and enemy location as inputs)

But why would it always be true? So if the TPC player’s capsule is 333, and we are within plus or minus of 50 + - only return true if so, otherwise false??

You’re just looking at the TPC location from the cast, You’d need Enemy(self?) location as well.

Like this?

Like that also get nothing. I want that print string to fire when the TPC is within that Y range.

I may have been thinking about this wrong. I changed it from the Y to the X and dropped the + and - to 10 and that seems to be working atm.

So the logic then would be first try to achieve X, then add movement input either Y + or Y- until in striking distance of the player.