How to know if SpawnActorFromClass have failed

Hello everyone !

I am trying to make an AI spawn a little actor that will seek positions for him (to teleport), but the issue here is that sometime the spawn is impossible, and if that the case I want to try other positions. But how can I know if the spawn fail ?
I already try to compare the return value of the node with a null actor but that don’t seem to work.

I believe you could try this
image

3 Likes

Oh, I feel a little stupid ahah
But it is working perfectly, thank you