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 / Press enter to use

Author
Message
Hardcore
User Banned
Posted: 12th Jan 2008 02:27
I have searched but could not find any info on this, I want to have a script that will display "press inter to use" and when enter is pressed it will activate a wav file. I tried to create this on my own but just cannot seem to figure it out.
Thanks
Seth Black
FPSC Reloaded TGC Backer
20
Years of Service
User Offline
Joined: 22nd Feb 2005
Location: Pittsburgh, PA
Posted: 12th Jan 2008 03:18 Edited at: 12th Jan 2008 03:21
...take apart a basic door script, remove the door references,
and you'll pretty much be left with what you're after.


Widow 13 - Coming Spring 2008
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 12th Jan 2008 08:04 Edited at: 12th Jan 2008 08:06
Here ya go...



Just use that as the AIMAIN for any Dynamic (Static=No) Entity that you want to be the trigger.

Of course you will need to change the name of the WAV file to match yours.
You should make sure that all audio files/folders are placed in the AUDIOBANK folder.

Don't forget to visit Conjured Entertainment

Hardcore
User Banned
Posted: 12th Jan 2008 13:01 Edited at: 12th Jan 2008 13:22
Thanks for the info on how to do the Script Seth.

And thanks to you Conjured for the script.


Edit: Conjured Your script works great, only issue I have is it works on 2 models but not exactly on the third. What I mean is it won't display "press enter to use" on the screen but if you hit enter it plays the wav. Any suggestions? If not no big deal, I can live with it. Thanks again
Conjured Entertainment
AGK Developer
19
Years of Service
User Offline
Joined: 12th Sep 2005
Location: Nirvana
Posted: 13th Jan 2008 00:50 Edited at: 13th Jan 2008 00:53
If it works for the first two it should work for the third.

So, I guess you used three seperate scripts for the models since the each play a different song?

If so, then...

Try using the script 1 or 2 for the 3rd model to confirm that script 3 is the error.
Double check the one that is broken for typo errors. (spelling errors cause script malfunctions)

Don't forget to visit Conjured Entertainment

Hardcore
User Banned
Posted: 14th Jan 2008 12:18
I'll try it tonight thanks.

Login to post a reply

Server time is: 2025-05-21 17:05:54
Your offset time is: 2025-05-21 17:05:54