destroying an actor after timer

filmsimonfilmsimon Member, PRO Posts: 33

I've got a timer which spawns an actor every 4 seconds. I'm trying to destroy the actor after the 4 seconds using the destroy actor. for some reason it just won't delete it. I've placed it inside the timer, outside the timer but it just sticks. can anyone help? Cheers

Comments

  • quantumsheepquantumsheep Member Posts: 8,188

    On the actual spawned actor, add a timer that says:

    After 4 seconds, destroy

    On the timer try checking the 'Run to completion' box.

    QS

    Dr. Sam Beckett never returned home...
    Twitter: https://twitter.com/Quantum_Sheep
    Web: https://quantumsheep.itch.io

  • SocksSocks London, UK.Member Posts: 12,822

    @filmsimon said:
    I've got a timer which spawns an actor every 4 seconds. I'm trying to destroy the actor after the 4 seconds using the destroy actor. for some reason it just won't delete it. I've placed it inside the timer, outside the timer but it just sticks. can anyone help? Cheers

    Behaviours affect the actor they are placed on - are you placing the destroy behaviour on the actor you wish to destroy or the actor that spawns it ?

  • SocksSocks London, UK.Member Posts: 12,822

    @quantumsheep said:
    On the actual spawned actor, add a timer that says:

    After 4 seconds, destroy

    On the timer try checking the 'Run to completion' box.

    QS

    This.

  • filmsimonfilmsimon Member, PRO Posts: 33

    @quantumsheep‌ & @Socks‌ - cheers for your help, works a treat.

Sign In or Register to comment.