How can I read Actor locations from an array?

i am having trouble getting location of an array index from a dynamically spawned static mesh from a blueprint class. location pin wont connect because types are incompatible, ive tried component array, actor and objects arrays

thanks

uploaded pic

Hey bennetherwood,

Get World Location node only works for SceneComponents of an Actor. If you use Get Actor Location instead, you can use an Actor Array without any problems.

Hope that helps!

thanks i actually tired this though, its working now though?, same image above is being used but now an actor location instead of world, pin wouldnt connect but if i disconnected array from get and last index and add then attach get pin to actor location pin it would work then ?? is this a possible bug?

If you disconnect array from Get node, Get node will attach to anything because it isn’t passing a type. You need to make sure that elements of array match type in receiving node. So for Get Actor Location node, you need to feed it an Actor. An array of Objects won’t work, but an array of Actors will. Does that make sense?

Got ya thanks man !