Forum rules - please read before posting.

How to find current running interaction and stop it?

I'm using coroutines and pause menu stop gametime as 0. Is there another way to pause without not setting gametime as 0 or can I find current running interaction and stop it and then resume it?

Comments

  • What's the context? Are you looking to have a coroutine run while the game is paused? That should be possible with the use of WaitForSecondsRealitime.

    By Interaction, do you mean ActionList? Multiple can be running at once, you can access them with:

    AC.KickStarter.actionListManager.ActiveLists
    

    Iterating through this array, you can call each item's actionList.Kill or actionList.Pause to end/pause them.

  • thank you chris. I will try.

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.