Hard Light Productions Forums

Modding, Mission Design, and Coding => The FRED Workshop => Topic started by: Belisarius on May 03, 2013, 03:57:18 am

Title: play-sound-from-file plays... nothing?
Post by: Belisarius on May 03, 2013, 03:57:18 am
Hi guys. I hope I'm in the right subforum.

I've made a small test mission and everything works out just fine for except one thing. I wanted to play a custom music during the mission, but the play-sound-from-file SEXP doesn't seem to work. The music file is named hbr.ogg and so I named it in the SEXP 'hbr' and made it loopable by entering a loop amount of 5. I've put the file in data/music, but the file won't play. The event is bound to the player Alpha 1 arriving. Here the SEXP:

(http://www.2x-pensive.de/beli/pics/psff.jpg)

Could anyone please tell me what I'm doing wrong?
Title: Re: play-sound-from-file plays... nothing?
Post by: FUBAR-BDHR on May 03, 2013, 04:06:10 am
Try just setting it to true or has-time-elapsed 1 and see what happens. 
Title: Re: play-sound-from-file plays... nothing?
Post by: Belisarius on May 03, 2013, 04:17:28 am
Yeah, that did it. Thought it could be tied to the players arrival.
Title: Re: play-sound-from-file plays... nothing?
Post by: karajorma on May 03, 2013, 04:26:23 am
Alpha 1 will never arrive because when the mission starts, Alpha 1 is already there.
Title: Re: play-sound-from-file plays... nothing?
Post by: Belisarius on May 03, 2013, 05:08:17 am
Ah, ok. I didn't know that.

Thank you very much!