event.message not working as expected

So, I've the following bit of code written in bgt.
if(event.type==event_receive)
{
tone.play();
voice.speak(event.message);
if(event.message=="1")
{
force_key_down(KEY_SPACE);
}
}
The first if statement is triggering fine for me, but the second one is not. I've tried removing the quotes and it's still the same result. Am I doing something wrong here?

This is the network object in BGT.

_______________________________________________
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector
  • ... AudioGames . net Forum — Developers room : sneak via Audiogames-reflector
    • ... AudioGames . net Forum — Developers room : sneak via Audiogames-reflector

Reply via email to