Skip to main content

The "vngen_audio_pause" Function

Syntax#

vngen_audio_pause(id);
ArgumentTypeDescription
idreal/stringThe ID of the sound to pause (or keyword all for all sounds)

Description#

Pauses a sound previously played with VNgen audio actions (except vox audio, which has a separate pause function). To unpause the sound later, see vngen_audio_resume. All audio except music will be automatically paused and unpaused if vngen_toggle_pause is run.

Example#

vngen_event() {
vngen_audio_pause("explode");
vngen_audio_pause("John Doe");
}

This will pause one sound effect and one voiceover audio line. Remember, voice audio uses the name of the associated character as an ID.