Terminate not being called

  • September 7, 2017 at 21:27 #21874

    I’m using the IRequireTermination interface with action base, but the Terminate method is not being called for some reason.

    The code looks fine and compiles fine. But when the game is running, and the action or selector switches, I can’t see debug logs from Terminate nor do line breaks work or anything. Have no idea why this is happening. Is my understanding of what Terminate is supposed to do just wrong?

    September 7, 2017 at 22:54 #21878

    ok after a ton of testing, I think I’ve isolated the issue

    Terminate is not called when the action is part of a composite action. I really need terminate to be called when exiting a composite action.

    September 7, 2017 at 23:07 #21880

    Ok and a giant nevermind on that one, turns out you need to use

    Terminable Composite Action

    Would be nice to mention this in the scripting guide under IRequireTermination.

    September 8, 2017 at 10:04 #21895

    Hi Edwon,

    Thanks for your posts.

    Unfortunately the documentation has become a bit outdated. Thank you for bringing this to our attention.

    I have added a mention of this now.

    • This reply was modified 1 year, 1 month ago by Rami.
    September 8, 2017 at 19:00 #21907

    Thank you :)

You must be logged in to reply to this topic.