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 Scripts / Sound trigger

Author
Message
StarHawk
17
Years of Service
User Offline
Joined: 27th Aug 2007
Location: Madison,Fl
Posted: 27th Aug 2007 19:31
How do I get an entitie to trigger sound?

The subject search did not help.

Remember Earth first,we can strip mine the rest of the planets later...
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 28th Aug 2007 00:05
Welcome to the forum.

Can you be more specific? Entities can trigger a sound when activated, spawned, interacted with, etc. Normally we add a simple sound=filename.wav to the script, but when you say trigger, what exactly do you mean?

Best.

I'm sorry, my answers are limited. You must ask the right question.

Nyllo
17
Years of Service
User Offline
Joined: 20th May 2007
Location: Surrey, UK
Posted: 1st Sep 2007 16:14
To get a sound to active, by far as I know what your talking about, do you mean I place a triggerr zone and then I get my .WAV and away I go.

The way I have always done it is like this:

Q: How do you get a sound zone to play music from when the player steps into the zone?

A: Well, you could either make a soundloopinzone and make the sound zone really huge, or you can put a trigger zone instead of a sound zone. Make the trigger zone activate an entity outside of the level. Make sure that the entity has a 'no' under spawn at start then put its main script has repeatsound, then go to its sound0, and put that as the sound you want to play. Here’s how to use a trigger zone: 1. Go to the entitybank in FPSC and pull out the blue generator thing (this could be any entity). 2. Place the generator outside of the 2 rooms. 3. Under the generator settings, set the 'spawn at start' to no, and at the very bottom, 'sound0' to whatever you want your music to be. 4. In the trigger zone's settings, change the 'ifused' field to the name of the generator. 5. Under the trigger zones main script, select plrinzoneactivateused.fpi 6. Test the game and see what happens.

Working on: Poltik

Login to post a reply

Server time is: 2024-11-23 20:21:38
Your offset time is: 2024-11-23 20:21:38