I have modified the battle method in the cpp to return an integer if there is a hit by a opposing team.
It seems like irMassageReceive does not contain the Missile.
I have tried removing the
"if(irMassageReceive == BLUE_MISSILE || irMassageReceive == GREEN_MISSILE || irMassageReceive == YELLOW_MISSILE || irMassageReceive == FREE_MISSILE)" and only check one at a time.
The outer check of team-variable works. But I cant get it to sense the missile. Any ideas? The weapon is set to correct. I see the light flashing on the bluetooth so I know it receives data. And I know some data is received by the Receive() method since the irMassageReceive is larger than 0.