Hi, I've been working on a Punch-Out like boxing game recently, and I've scripted a lot of things. However, I recently ran into a bug I can't seem to fix.
There are objects for the player, the opponent, and a referee. When the opponent gets knocked down, a certain routine happens where certain nodes execute code from each other scripts. First the opponent falls down, then the player's input gets disabled then the ref comes out, then he counts to a (temporarily) random number, then the opponent gets back up, then the ref says fight, then the player's input gets enabled.
The player's input is kept as a boolean, and the function that enables it is just changing it to the opposite. However, this is not happening. I spent a long time using breakpoints and experimenting to no avail trying to figure out what's exactly going on, but I do know that the function that enables the player's input is getting executed twice, and that the opponent getting up script is too. But I don't know why this is happening - especially why it's exactly twice.
Attached are my scripts, any help would be greatly appreciated.