Seems coding it would the easier way to go, but I was wondering if there's a way to play an action
every X seconds, where X is a random number in a range.
In my case, I'd like to play a SFX in the background every 4-10 seconds.
Is this possible?
A simpler question in the same line, is there an action to wait a number of seconds before executing the next action in an ActionList? without Pausing the game that is.
Thanks!
Comments
You can use the Variable: Check random number Action to run a different chain of subsequent Actions at random. If each branch contains an Engine: Pause game Action set to pause by the same amount as the random value, you can delay the Action after it by a random amount. Then, just link all the pausing Actions to the same Action that follows. Be sure to use the ActionList Editor window for this - it'll be much easer to construct.
As for delaying, rather than pausing, just change the When running field (at the top of the Inspector) to Run In Background, instead of Pause Gameplay.