Play-sound-from-file: Difference between revisions

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…'
 
mNo edit summary
Line 3: Line 3:
Example:
Example:
  (play-sound-from-file "BattleMusic01.ogg" 1)
  (play-sound-from-file "BattleMusic01.ogg" 1)
[[Category:SCP SEXPs]]

Revision as of 12:03, 24 January 2010

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)