Hi, I was wondering if there’s a way to do a line/box/sphere/anything trace and somehow have it look for an object with a tag instead of a straight up array or something of the like…
Thanks!
Hi, I was wondering if there’s a way to do a line/box/sphere/anything trace and somehow have it look for an object with a tag instead of a straight up array or something of the like…
Thanks!
Not directly. You will have to check the resulting array for actors with that tag.
I was in the same situation once. Certainly not ideal but right now all we have in BP.
Cheers
Aahhhh, I see. I’m trying to work on the walljump for my 2D game, I was planning on having it check for any surrounding walls like that. How would you go about doing it, if you don’t mind telling me?
I assume you want to determine with the tag if the character should be able to jump from it or not (maybe die or whatever).
Well the only real solution I can offer is to do a sphere trace while you’re in air (just for performance reasons… while walking this shouldn’t be interesting
and then check for a wall with this tag.
Scan a bit above the lowest point of your character with a fairly large radius (so if you fall on the ground it won’t first trigger the sphere trace but it will detect any walls in front or behind you).
Ah, alright, thanks, that’s what I was planning on doing but I’m glad to hear it from you as well ![]()