Play-sound-from-file

From FreeSpace Wiki
Revision as of 21:30, 15 April 2010 by TopAce (talk | contribs) (addition)
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)

Only one sound can be played by this SEXP at a time.