My blueprint is spawning two child actors instead of one, help.

So Im trying to spawn one of two child actors but instead it would spawn both sometimes. I made it like this:


The results would be this:

Ignoring the staircase with the white mesh, you can see that on the left most side the white box looking is clipping in with the big box looking. While on the middle its just the big box looking alone.
Heres one where I get my desired result where it works as Ide want it to.

But this is after a couple refreshes so you can imagine theyde spawn inside one another more often than not.
Any tips?

How many times do you actually run that script? More than once, right? It is running in loop?

im not running a loop on it, before the branch node is a sequence node. since its a function i think something loops somewhere down the line, maybe that might be the issue. Ill check it out soon

It would help if you show what is on the left side of the script where the execution wire originates.

This may sound dumb now ill be honest hahaha but I found the issue, I was calling the function twice after all. Lets just say I called the function shown above within another function, then doing it again outside said function. The loop idea was an eye opener it was a big help, Thank you

1 Like