Quote: --- Original message by: Banshee64
so the oblmusic script needs to be dormant?
Nope, just determine a variable for when it should start. For example
(global boolean safety_word 0)
(script startup activator
(sleep_until volume_test_objects my_arse (players)
(set safety_word 1)
)
(script continuous oblmusic
(sleep_until (= 1 safety_worD))
...stuff goes here...
)
(sleep) actually has another variable outside of the tick count
(sleep <short> [<script>]) pauses execution of this script (or, optionally, another script) for the specified number of ticks. (1 tick = 1/30 second (sleep 30 more_weapons
If the string is left blank, it defaults to the calling script.
You may actually have to use
(sleep -1 oblmusic)
instead, but either way you can force any script (dormant, stub, static, startup or continuous) to sleep for any time from any other script.
Edit:
Or this works as well;
(script continuous oblmusic
(sleep -1)
....stuff goes here...
)
(script startup activator
(sleep_until (volume_test_objects my_arse (players)) 5)
(wake oblmusic)
)
Edited by DeadHamster on Apr 19, 2017 at 03:09 PM