Incompatible Nodes, Get All Actors of Class vs Get Actor of Class

Hello!

I have a system where an object will follow along a spline path. Currently it uses “Get Actor of Class” and sets that value to a variable: Spline Ref. What I would like to do is swap that from “Get Actor of Class” to “Get All Actors of Class” + “Find Nearest Actor”, so that I can have the enemy follow the closest spline from where they were spawned in.

My issue is the “Get All Actors of Class” + “Find Nearest Actor” isn’t compatible with the same node. I’ve provided all relevant (or at least I think all relevant) sections of the BP. Can anyone assist?

One image is the Spline Bath BP and the other is the Enemy BP


FindNearestActor node returns a pointer of type AActor. You need to Cast to SplinePathBP after.

Thank you very much, it worked like a charm. Gotta take some time to figure out how the Cast node works.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.