I have to blueprint classes, let’s call them A and B. I place b in the world, and in the blueprints of A I want to get the position of B in the world. How would I do this?
In BP_B
Wrong way around, but you get the idea…
You can also put a variable in B to point to A, and set it when you put them both in the level
I tried this but I get None as a return value, I checked if the return value of “get actor of class” is valid but it tells me it is not.
Can you show your code?
( They both need to be in the level when you run it )
It prints noooo when I run it.
Think of portal 2 as object B, I obtain it this way
Both objects A and B are placed in the same level
This will work. You’re doing something ‘hinky’…
For now, just do it like this:
And you have one of each type in the level?