Thread: Radio help
View Single Post
  #2  
Old 08-17-2005, 07:32 PM
Bl0nkt Bl0nkt is offline
Era Developer
Bl0nkt's Avatar
Join Date: Mar 2005
Location: Pennsylvania
Posts: 1,589
Bl0nkt will become famous soon enough
Send a message via AIM to Bl0nkt
The serverr. strings need to include different radio stations.

Example:

serverr.radioA,strings;
serverr.radioB,strings;

Then add variables for switching the channels.

NPC Code:
if (weaponfired) {
if (this.stationnumber == 0) {
this.stationnumber = 1;
timeout = .05;
}else
if (this.stationnumber == 1) {
this.stationnumber = 2;
}timeout = .05;
}


Then put small areas distinguishing what each variable does.

NPC Code:
if (timeout) {
if (this.stationnumber == 1) {

[Insert the script to show the text of the current song and such]

}
}


Just keep your mind to it.
Reply With Quote