my current ai move and attack task is dependant on either the “ai move to” node or the “move to location or actor” node which both have a reqest failed and success output. They however do not have a filter class like the “move to actor” or the “move to location” node do. Is there a way I can give the “move to location or actor” node a filter class?
here are some pictures of ways i have tried to solve it Imgur: The magic of the Internet
Here is the tutorial series i used primarily to create this https://www.youtube.com/watch?v=84upuVN6s1Y&list=PLNwKK6OwH7eW1n49TW6-FmiZhqRn97cRy&index=8
Hey @emperorrobert! Welcome to the forums!
So the reason you can’t do this here is because it would negate the purpose of the “Location” part of “Location or Actor.” The filter class wouldn’t be able to function at all vs Locations as a location can’t have a class, it’s just a set of 3 floats.
So, I would use a branch. Check if the goal is a vector or an actor. Don’t forget you can just get the location of an actor.
If you need to filter actors, use an Actor based node.
If you need a location, use the Location based node.
It can’t have both a Filter class AND Location reading on the same node because it would pull an error trying to find the class of the location (which doesn’t make sense). Instead of trying to cram all functionality into a single node, just try to figure out how to do it with multiple nodes (then turn that into a function!
).
I hope that helps you figure out what to do!
I see thank you, I think it will take me a day or two to create a workaround but i think im heading in the right direction