How to get variables from actors in a trigger box?

Trying to make scale in my puzzle game and i have a problem when i try to load objects that are overlapping with the trigger box with getoverlapingactors and try to connect it throw for each to the variable it says actor object reference is not compatible with object reference. Can you pls help me.

I think you have to select a class type first. It needs to know what type of object is going to be in the array. Then, try dragging off the Array Element pin and search for ‘get vahaid’

It does not work this way, if you take all the overlapping actors, you can take several different actors. Unreal doesn’t know from which actor you want a variable.

You have to use the ‘Class Filter’ for this.

To solve your problem:
Indicate from which class you need a variable in the ‘Class Filter’. Drag from ‘Array Element’ and use ‘Cast to’. Now you can drag from ‘As’ and take your variable.

I made an example for you to make it clear.
Hopefully, this will help you.

Thanks a lot i didn’t knew about he cast to part, sorry i forgot to put the class back :smiley:

No it doesn’t work like that i had it before i just forgot to put it back in :smiley: but the answer from colder347 is working. But thanks

No problem, I’m glad I could help you.

You can close the question by clicking on ‘accept this answer as correct’ right under the vote arrows.
Then everyone knows that this question has been answered.