event.message not working as expected

2015-12-06 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


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.

URL: http://forum.audiogames.net/viewtopic.php?pid=241432#p241432





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector

Re: event.message not working as expected

2015-12-06 Thread AudioGames . net Forum — Developers room : sneak via Audiogames-reflector


  


Re: event.message not  working as expected

Alright, so I feel kind of stupid. This was working as intended, however for some odd reason my debugging code wasn't working right, have since fixed it.

URL: http://forum.audiogames.net/viewtopic.php?pid=241495#p241495





___
Audiogames-reflector mailing list
Audiogames-reflector@sabahattin-gucukoglu.com
https://sabahattin-gucukoglu.com/cgi-bin/mailman/listinfo/audiogames-reflector