Hello,
I am trying to attach random pickups to floor tiles which I spawn in my endless running game (Paper2D).
Therefore the floor tiles have an Arrow (Pickup Attach Point) at which the pickups should be attached.
This is the function which is called in the construction script of the floor tile:
The problem is now, that nothing at all is spawned. I added string output (as you can see in the blueprint) and it prints “FAIL” all the time. If I step in the branch with a breakpoint, I can see that the return value is “None”.
I absolutely cannot explain why this keeps happening.
Can someone please tell me what I am doing wrong and how it would be done right?
Thanks in advance.