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 / locked door?

Author
Message
twitchy 624
18
Years of Service
User Offline
Joined: 18th Jul 2006
Location:
Posted: 16th Mar 2008 02:04
Is there a script to lock a door until an audio clip is finished playing? Thanks.
107295
17
Years of Service
User Offline
Joined: 26th May 2007
Location:
Posted: 16th Mar 2008 04:01
Simple, use the timegreater condition.

So a Shepard said to his flock; "Thou shalt be confuseth!" and so they were.
twitchy 624
18
Years of Service
User Offline
Joined: 18th Jul 2006
Location:
Posted: 16th Mar 2008 04:32
and I would use that how? sorry I am new to scripting
Nickydude
Retired Moderator
18
Years of Service
User Offline
Joined: 4th Nov 2006
Location: Look outside...
Posted: 17th Mar 2008 22:00
You'll need to get the length of the song in milliseconds and user the condition:

timergreater = <no. of milliseconds here>

Plystire
21
Years of Service
User Offline
Joined: 18th Feb 2003
Location: Staring into the digital ether
Posted: 17th Mar 2008 22:35
If you want to learn scripting, then I suggest you start with VERY simple scripts... so simple that they could easily be referred to as "stupid simple". If you can get some super simple scripts working, move up to something not so simple. Continue up the ladder until you're no longer asking questions that are answered and have been answered many times all over this board.

Look up some tutorials. (Specifically, my tutorials, since I start out with the "stupid simple" scripts and work up.)


The one and only,
~PlystirE~

Login to post a reply

Server time is: 2024-11-24 06:31:17
Your offset time is: 2024-11-24 06:31:17