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 zone script error

Author
Message
Commandos
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Lithuania
Posted: 24th Nov 2007 17:58
where to bug in bug script
foxking
18
Years of Service
User Offline
Joined: 10th Dec 2005
Location:
Posted: 24th Nov 2007 19:37
WHAT doesn't work with the script?

Be more specific.

CoffeeGrunt
17
Years of Service
User Offline
Joined: 5th Oct 2007
Location: England
Posted: 24th Nov 2007 20:44 Edited at: 24th Nov 2007 20:45
Quote: ":state=0,plrdistwithin=150:state=1,sound=audiobankmysound.wav"


zones don't seem to have a proper collision.... you want to use Plrinzone....

Quote: ":state=1,plrdistwithin=50:state=0,STOPSOUND"


This bit is just simply uneccessary as the sound would stop anyway when the player exits the zone using the afore mentioned Plrinzone condition.

Commandos
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Lithuania
Posted: 25th Nov 2007 10:41 Edited at: 25th Nov 2007 11:53
I choose because, player near object ( radio, tv, speakers) 50 units to make a start muzic sound. But player to make one's way 250 units stop play sound.

Sorry away inaccuracy gramatic





This script not works
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Nov 2007 16:11
Quote: "PLRSOUND=X plays a 3d sound at the player's current position, the sound file is specified by =X"


The value of plrsound needs to be a sound file, not a number.

If you're trying to play the sound within a certain distance it would be:

:state=0,plrdistwithin=50:state=1,plrsound=audiobank2.wav
:state=1,plrdistfurther=200:state=0,stopsound

Best

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

Commandos
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Lithuania
Posted: 25th Nov 2007 16:30
start sound is ok

but not stop sound
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 25th Nov 2007 17:02
I'm not sure what that means. I selected the sound I wanted and assigned it as the entities Sound0 in the editor. Then I assigned this script to the entities AIMain, and it worked fine for me.



Best.

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

Commandos
18
Years of Service
User Offline
Joined: 23rd Mar 2006
Location: Lithuania
Posted: 26th Nov 2007 11:52
THANKS very tanks work script (ACHIU)
xplosys
18
Years of Service
User Offline
Joined: 5th Jan 2006
Playing: FPSC Multiplayer Games
Posted: 26th Nov 2007 17:22
You're quite welcome.

Best.

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

Login to post a reply

Server time is: 2024-11-24 01:57:26
Your offset time is: 2024-11-24 01:57:26