"Pending kill" error message

I am trying to create an array of actors that follow a spline but when spawning the actors I get this pending kill error when trying to set their location (at no point am I destroying the actors)

296801-error-code.png

I think you did something weird when you made the connection to the add array call. Notice the diamond shaped connection there?..

Try binning that ADD node and making it again…

nothing changed it still says the error message :frowning:

Hmmm, but look at this ADD call:

296796-add.png

See it has a round pin? Yours has a diamond shaped pin, which usually donotes ‘by reference’.

See what I mean?

yeah its back to rounded now but the error is still appearing

Here is what happens , each time he goes through the block he should have 4 more people each time but the spacing is saved hence why they are so far apart(there should be people in between the ones on screen) but only the first loop object is spawned

link text

What other code do you have in that BP?

Is there any code where you kill them?..

there is no code that kills them, I have disconnected all the other code in the BP except this that sets the location

Its always something simple… changed the spawn node to ignore collision and always spawn it now works fine :slight_smile: :slight_smile:

Ahhh… spawn node was killing them… :slight_smile: