Download

problem with delay

hi . can anybody help me ? after i destroy actor i want him to spawn again after few second but if i use delay its doesnt spawn. but if idont use delay its spawn but it goes on infinite loop beacuse is spawning on the same location . and i dont know why the delay is not working at all.

After you destroy the actor then the code from that actor will quit working. Try disabling the actor (Make invisible, remove collision), then do the delay then respawn then destroy.
or move the delay and respawn code from the casted actor using a sequence node.

Can’t you just reuse the same actor?

Ok thank you it work :slight_smile: