I’ve tagged the two walls with Walls as well making sure they’re spelt the same as the code with capitals and all.
You need the same tag on the actors as in the ‘get all’.
You put ‘Walls’ in the search, then each actor needs the tag ‘Walls’.
Okay so Get All actors with Tag, put Walls in the search section, where would I hook up the node?
It’s very simple. Let’s go from square 1
-
I’m assuming you have static meshes in your level. You want to only make some climable.
-
On one of the climbable ones, put the word ‘Wall’ in the ACTOR tag section, not the component bit.
-
On begin play, we collect all of those walls with the same tag ‘Wall’ ( whatever you put ). And we put them in an array. You’ve done this.
-
When we trace, the first thing we do, is check if the actor we hit is in the list of walls.
That’s it.
BTW: What’s in this?
That was part of the old code, that’s basically ignoring objects with ‘NotAWall’ and disables the mechanic
This worked out well, I tried adding in a new object and added a tag and it worked perfectly, thank you very much, all I have to do is add the false method into the offwall function and it works perfectly, thank you so much for your outstanding help.
You’re welcome
PS: If you have more than 50-100 climbable walls, then you might need to switch to another method. But that’s for another time…