Play-sound-from-file: Difference between revisions

mNo edit summary
m addition
Line 3: Line 3:
Example:
Example:
  (play-sound-from-file "BattleMusic01.ogg" 1)
  (play-sound-from-file "BattleMusic01.ogg" 1)
Only one sound can be played by this SEXP at a time.


[[Category:SCP SEXPs]]
[[Category:SCP SEXPs]]

Revision as of 21:30, 15 April 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)

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