The "vngen_audio_play_voice" Function
#
SyntaxArgument | Type | Description |
---|---|---|
name | string | The ID of the speaking character to match this sound to |
sound | sound | The sound resource to play as voiceover |
volume | real (0-1) | The sound volume, where 1 is default and 0 is silent |
fade | real | The length of time to fade sound in, in seconds |
[ease] | integer/macro | Optional: Sets the ease mode to perform the fade in |
[lang] | real/string | Optional: Sets the language flag for this action |
#
DescriptionPlays a new sound as voiceover with an optional fade in and volume control. Voiceover is never looped and will be paused if vngen_toggle_pause
is run. Voice audio will be added to the backlog for the current event and will trigger facial animations for the associated character, if any.
See Macros & Keywords for a list of available ease modes. See Language Functions for details on multi-language support.