Skip to main content

The "vngen_vox_add" Function

Syntax#

vngen_vox_add(name, sound);
ArgumentTypeDescription
namestringThe ID of the vox sound to modify (or keyword all for all vox)
soundsound/arrayThe sound resource to add

Description#

Adds a new sound or array of sounds to a vox entity previously created with vngen_vox_play. Unlike vngen_vox_replace, adding sounds with this script will not clear existing resources from the entity, but assign multiple sounds to the same entity which will then be chosen at random each time a new text element increments on-screen.

Example#

if vngen_event() {
vngen_vox_add("John Doe", snd_vox_happy);
}