This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
stop_sound [2024/02/01 13:21] – justin | stop_sound [2024/02/01 14:01] (current) – justin | ||
---|---|---|---|
Line 9: | Line 9: | ||
^Argument^Description^Type^Required^ | ^Argument^Description^Type^Required^ | ||
- | |sound_id| |[[Number]]|Yes| | + | |sound_id|Unique ID of the [[sound|sound effect]] to stop (numeric value returned from the [[Play Sound]] function).|[[Number]]|Yes| |
- | |fade_out_length| |[[Number]]|No| | + | |fade_out_length|Length of time over which to fade out (in seconds).|[[Number]]|No| |
====Example: | ====Example: | ||
Line 19: | Line 19: | ||
<WRAP center round tip 100%> | <WRAP center round tip 100%> | ||
- | Use the **Stop Sound** function to... | + | Use the **Stop Sound** function to stop a looping [[sound]] that was previously triggered, for example to stop a warning alarm from going off when the player interacts with a security computer. |
</ | </ | ||