Play-sound-from-file

From FreeSpace Wiki
Revision as of 12:03, 24 January 2010 by TopAce (talk | contribs) (Created page with 'Plays a sound file located in either the /sounds or /music folders. The SEXP must include the file extension, but not its location. You can set this SEXP to loop the sound file b…')
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Plays a sound file located in either the /sounds or /music folders. The SEXP must include the file extension, but not its location. You can set this SEXP to loop the sound file by giving a nonzero number as its second value.

Example:

(play-sound-from-file "BattleMusic01.ogg" 1)