Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

FPSC Classic Product Chat / How to play music?

Author
Message
Dark Frager
16
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 13th Dec 2010 22:33
Hi,
This probably a n00b question but, I'm sort of new, so yeah.
Title says it all basically, how do you play music? I placed a sound zone and the music file I want to play, but nothing happens, my sound was turned on max, so I could hear everything.

Oh yes and BTW, can someone answer this question for me too please:
How do I spawn a character with a trigger zone? I chose a character, I set spawn on start to no, and placed a trigger zone that was supposed to activate the entity name. But I that didn't work so I guess I did something wrong.

- Thanks
Dark

If you can see the enemy, they can see you.
Poloflece
16
Years of Service
User Offline
Joined: 14th May 2010
Location: Australia
Posted: 13th Dec 2010 22:37
1. make sure the sound is in the files/audiobank/music/your song folder/your song.wav


2. Not sure, I haven't ever tried that.


Poloflece


Poloflece, not to be mistaken for polofleece, polar fleece or polar flece. But I like to go by Polo or PFG, SO GET USED TO IT!
Dark Frager
16
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 13th Dec 2010 22:41
Thanks, Polofleece!

If you can see the enemy, they can see you.
Bejasc3D
17
Years of Service
User Offline
Joined: 17th Aug 2008
Location: Down Under
Posted: 13th Dec 2010 23:59
For music.

Do as Polofleece said.
Save it as a .wav file in your sound bank.
The next step depends. If you want it to loop, you need to change the 'main' script in the AI column when it is right clicked. Set it to soundloopinzone. For a sound to just play once, have it as soundinzone.
The sounds MUST be saved as a .wav, and in your soundbank to work.
The sound will ONLY play in the sound zone you placed it in so just make the zone bigger, if you want to have it over a certain area.

As for the enemies,

Spawn your enemy, name it say (Ambush01) - You can do this with multiple enemies for more enemies, they can all have the same name.
Now, create a trigger zone. Change the AI - Main script to 'plrinzoneactivateused'
Now in the column, where it says, If Used, paste the name of your enemy, in this case Ambush01

That should all work.

TiTaniUm

Dark Frager
16
Years of Service
User Offline
Joined: 16th Mar 2010
Location: The Void.
Posted: 14th Dec 2010 17:31
Thanks for your help guys!

If you can see the enemy, they can see you.

Login to post a reply

Server time is: 2026-07-03 10:22:28
Your offset time is: 2026-07-03 10:22:28