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 / what am I doing wrong (sound scripting problem)

Author
Message
Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 12th May 2009 12:47
Hi everyone
am tryin to script an entity so that it loops a sound when the player is near and the sound fades away as the player gets further..
here's wut I have so far



it doesn't work and the entity doesn't play any sound close or far..

-I've assigned the sound in the entity properties
-set the entity to dynamic
-put the script in (main)

TY


~Level my Dragon~[/url]
Best Wishes..
Apple Slicer
16
Years of Service
User Offline
Joined: 14th Nov 2008
Location: Oregon, in the rain...
Posted: 12th May 2009 17:46
Well, where is the sound path, and file you are looping?

Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 12th May 2009 17:55
I think it has do do with the MUSICVOLUME. Check out page 226 of the guide.

Red Eye
16
Years of Service
User Offline
Joined: 15th Oct 2008
Location:
Posted: 12th May 2009 19:58
Try to put something in the loopsound instead of directing it to the sound in the properties.



Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 12th May 2009 20:16
@Red Eye: tried didn't work either

@Nicky:
page 226 is "How can I move part of my map to another part of the play area?", if u mean the volume formula i applied it and still doesn't work (ps: it's page 212)

here's what I got




~Level my Dragon~[/url]
Best Wishes..
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 12th May 2009 20:31
I don't think that MUSICVOLUME controls sounds. I think it controls the level music (background) but I could be wrong.

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 07:21
The musicvolume command only works on music, as xplosys has said.

You may need to use "SoundScale=X" for this, though this effects all 3d sounds.


The one and only,


Bibo4PC
16
Years of Service
User Offline
Joined: 17th Oct 2008
Location: Middle Earth
Posted: 13th May 2009 16:47
but wouldn't SoundScale control the sound of all the level?


~Level my Dragon~[/url]
Best Wishes..
Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 13th May 2009 19:17
Yes it would. But at this point you have no other alternative other than to just let the 3d sound act as it should (which SHOULD get softer as you move away from it)


The one and only,


Login to post a reply

Server time is: 2024-11-25 01:49:35
Your offset time is: 2024-11-25 01:49:35