
10-08-2001, 01:17 AM
|
Registered User
|
 |
Join Date: Mar 2001
Posts: 825
|
|
~AlphaFlame~
Here's a short instrument script...
if (playertouchsme){
toweapons Flute;
}
if (weaponfired){
this.mode=1-this.mode;
timeout=.05;
}
if (timeout && this.mode=1){
freezeplayer .05;
for (i=0;i<4;i++){
if (keydown(i) && !keydown(5)){play flute#v(i+1).wav;}
if (keydown(i) && keydown(5)){play flute#v(i+5).wav;}
}
if (keydown(6))this.mode=1-this.mode;
timeout=.05;
}
Just make sure the flute wavs are numbered 1-8... like flute1, flute2, etc. |
__________________
If the post says ~AlphaFlame~, that's who's posting. If not, it's Entravial (owner)
|
|
|