audio_play_id_for_navpoint(navpoint_name, audio_id[, type_name[, blocking]])

Parameters:
navpoint_name (string) name of the navpoint
audio_id (integer) ID of sound to play
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 ID) on a navpoint.
 

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