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 / script for switch that dose 2 things at the same time plz

Author
Message
Credz_42
18
Years of Service
User Offline
Joined: 26th Nov 2006
Location: in front of the comp
Posted: 12th Dec 2006 15:25
help i need a script that dose to different thing at the same time

wot i need the script to do is open remote doors and play a sound
Storm 6000
20
Years of Service
User Offline
Joined: 10th Oct 2004
Location:
Posted: 13th Dec 2006 00:17
The remote door script does this so i dno what on earth you are on about, judt change the sound in the sound0 propertie on the doors right click menu if its not what you need, also learn to script, read the manual and read nikky dudes guide

Thanks
Adam
Credz_42
18
Years of Service
User Offline
Joined: 26th Nov 2006
Location: in front of the comp
Posted: 14th Dec 2006 11:51
thanks i still need the switch to play the activate sound and also it needs to play an alarm sound
Candle_
18
Years of Service
User Offline
Joined: 29th May 2006
Location: kindergarten
Posted: 16th Dec 2006 03:27
Read the manual.
It's all in there.

the programmer
18
Years of Service
User Offline
Joined: 5th Jan 2006
Location:
Posted: 16th Dec 2006 06:54
remember that this one can be figured out on your own.

But to get you started all give you the script.
Put this into an fpi document and put the fpi document into the main script area of the switch you want. That should solve your problem.

:state=0:hudreset,hudx=50,hudy=90,hudimagefine=gamecore\text\pressentertouse.tga,hudname=useswitchprompt,hudhide=1,hudmake=display,state=10
:plrdistwithin=50:hudshow=useswitchprompt,hudfadeout=useswitchprompt

:state=10,plrdistwithin=50,plrusingaction=1:state=1,plrsound=$0,activateifused=1,alttexture=1,loopsound=audiobank\atmos\alarmhum.wav
:state=1,plrusingaction=0:state=2
:state=2,plrdistwithin=50,plrusingaction=1:state=3,plrsound=$1,activateifused=0,alttexture=0
:state=3,plrusingaction=0:state=10

Now notice the last action at the end of the tenth statement (loopsound=audiobank\atmos\alarmhum.wav).

Thats all i added to do what you wanted. Do you see how simple that is.

Well hope you understand
Cheers mate
the programmer
Credz_42
18
Years of Service
User Offline
Joined: 26th Nov 2006
Location: in front of the comp
Posted: 16th Dec 2006 14:19
thanks guys

Attachments

Login to view attachments

Login to post a reply

Server time is: 2024-11-26 23:49:58
Your offset time is: 2024-11-26 23:49:58