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 / how to play soud and turn on light

Author
Message
SH4773R
14
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 15th Jul 2010 09:55
How do I play a sound and how do I turn on lights?

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.
mgarand
16
Years of Service
User Offline
Joined: 22nd Dec 2007
Location: The Netherlands
Posted: 15th Jul 2010 12:22
Sound - Sound zone
Light - Light marker



Creativity is inventing, experimenting, growing, taking risks, breaking rules, making mistakes, and having fun.
ctm
19
Years of Service
User Offline
Joined: 25th Feb 2005
Location:
Posted: 15th Jul 2010 13:49
You can turn a dynamic light on with the lighton action.

The sound=$0 action plays a sound which you define in the entity properties in the editor.

There is also a loopsound=$0 action. This one has to be stopped with the stopsound action if the sound is not meant to loop forever.

There are already simple scripts in your scriptbank which show how these actions can be used:

light1.fpi


soundinzone.fpi


and
soundloopinzone.fpi
SH4773R
14
Years of Service
User Offline
Joined: 18th Jan 2010
Location: AMERICA!!!
Posted: 15th Jul 2010 22:01
How do define what light should go on in light on and off? Thanks so far though!

Who the hell is General Failure? And why is he trying to read my hard disk?

My software never has bugs. It just develops random features.

Login to post a reply

Server time is: 2024-11-24 21:33:48
Your offset time is: 2024-11-24 21:33:48