audio_play_for_mover(audio_name, script_mover[, type_name[, blocking]])

Parameters:
audio_name (string) name of sound
script_mover (string) name of mover
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 mover.
 

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