— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
— — — — —
This is an old revision of the document!
Stops an actively playing sound effect. A sound's unique ID is returned from the Play Sound function. The second parameter is optional and will fade out the sound effect over the specified amount of time.
stop_music(fade_out_length)
Argument | Description | Type | Required |
---|---|---|---|
fade_out_length | Length of time over which to fade out (in seconds). | Number | No |
stop_music(2);
Results: The music will be faded out over a duration of two seconds.
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.