Hi, I am trying to achieve the effect of delaying the run of an Actionlist, while such delay can be controlled.
For example, when there is a game section that has a time limit, and after the time limit an Actionlist for game over will run. I can do that by using Engine:wait. However, when there are conversations or dialog, I wish to pause the time limit count down. I tried to modify the Engine:wait action but no luck. Is there a way to achieve such effect? Thanks
Comments
Aging Items
However, to stop a timer I think you would have to rely on a global variable.
Lets assume 60 seconds.
Create a Global Variable called Timer with an Integer value of 60.
Create an actionList asset that waits 1 second, then decrements the value by one. Have this run in a loop.
Each time you want to pause it, stop the action, play whatever you need, then launch it again to start decrementing the variable.
I haven't done this myself, so you may have to experiment, but thats probably how I would approach it.
Kev
Pausing as in ActionList: Pause or resume?
Yes
--------------------------------
What is it that's being considered finished, the Action that was running at the time, or the whole ActionList?
I turned the looping actionlist Kev suggested into an looping actionlist asset, with the parameter to set the time to count down.
The main actions flow is like:
Actionlist Run: looping actionlist asset -> next action when the count down parameter reaches zero.
But however, when I pause the looping actionlist asset (the pause action is called from run parallel), it goes directly to the next action.
ie if variable >0 then decrease by 1, else run the next action.
That's what I came up with too