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 / Music selection script

Author
Message
FredP
Retired Moderator
18
Years of Service
User Offline
Joined: 27th Feb 2006
Location: Indiana
Posted: 27th Jan 2008 13:05 Edited at: 27th Jan 2008 13:08
Add this script to a triggerzone,dynamic entity,etc. as the main AI script.Pressing the N key will play the first audio file and pressing on the M key will play the second one.
Change the audio files to whatever you want.Obviously you can add more scancodekeypressed lines and audio tracks at will.
A note...if you decide to play one track and then hit a key to play another the first track will still finish playing while the second track is going.
You can use this to allow a player to select the music they want to hear or as a script for a radio...or you can use it to get verbal responses from NPCs.The NPC asks you a question.The key you press can decide the NPC's verbal response as well as other actions if you get creative.
It's not much but what the heck.It's a start.



or...you can download it.It's attached.

Please have mercy and use the search function.

Attachments

Login to view attachments
Veron
18
Years of Service
User Offline
Joined: 22nd Nov 2006
Location:
Posted: 27th Jan 2008 13:19
Very nice script Fred, thanks very much!

Nice work, keep it up!

Login to post a reply

Server time is: 2024-11-24 03:38:17
Your offset time is: 2024-11-24 03:38:17