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
  • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ivan_soto via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : ashleygrobler04 via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : zenothrax via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : redfox via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : Merin via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : CAE_Jones via Audiogames-reflector

Reply via email to