This shows you the differences between two versions of the page.
Both sides previous revision Previous revision | |||
script:module:audio [2020-11-12 18:23] skyjake |
script:module:audio [2020-11-12 18:25] (current) skyjake |
||
---|---|---|---|
Line 56: | Line 56: | ||
| ''delay'' | tics | Wait given number of tics (1 second = 35 tics) | | | ''delay'' | tics | Wait given number of tics (1 second = 35 tics) | | ||
| ''delayrand'' | arg | Wait for ''P_Random() & arg'' tics (note: bitwise AND operator) | | | ''delayrand'' | arg | Wait for ''P_Random() & arg'' tics (note: bitwise AND operator) | | ||
- | | ''end'' | | Sequence terminator. Another one of the map's sequences is started at random. | | + | | ''end'' | | Sequence terminator. Another one of the map's sequences is started at random after a delay. | |
This function can be called from a [[ded:map_info_syntax#on_setup|Map Info "On setup"]] script to set up ambient sound sequences in that map. The sound sequences are reset back to the built-in sequences whenever the map changes. | This function can be called from a [[ded:map_info_syntax#on_setup|Map Info "On setup"]] script to set up ambient sound sequences in that map. The sound sequences are reset back to the built-in sequences whenever the map changes. | ||
This function can also be called during a map. If the currently playing sequence is modified, it will restart as if the ''end'' command had been used. | This function can also be called during a map. If the currently playing sequence is modified, it will restart as if the ''end'' command had been used. |