Re: redfox's bgt questions?
hi, what's the problem with this code? I'm trying to get it to do what redspot does with the weapon ping, like, if wping is off, in this case 0, it would turn on and go back to one wen i hit grave, It's only turning it on though, am I missing something, o, and obviously, this isn't the whole script, the actual script is too big and most of it doesn't have anything to do with this, so, thanks in advance?
if (key_pressed(KEY_GRAVE) and wping<=0)
{
speak("weapon ping on!");
p.play_2d("wpingon.ogg",me.x,me.y, me.x,me.y,false);
wping=1;
}
if (key_pressed(KEY_GRAVE) and wping>=1)
{
speak("weapon ping off!");
p.play_2d("wpingoff.ogg",me.x,me.y, me.x,me.y,false);
wping=0;
}
-- Audiogames-reflector mailing list Audiogames-reflector@sabahattin-gucukoglu.com https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector