audio_play_for_character_weapon(audio_name, human_name[, type_name[, blocking]])

Parameters:
audio_name (string) name of sound
human_name (string) name of character
type_name (string, optional) name of audio source (can be "foley", "voice", "music", or "ambient"; defaults to "foley")
blocking (boolean, optional) set to true if the function should block until the sound has finished playing (defaults to false)
 
Returns:
(integer) audio instance handle, or -1 on error

Description:
Play a 3D sound (by name) on a character's weapon.
 

back to indexSR3 Script Action Documentation
Last updated: Tue, 09 Aug 2011 11:32:15