13.07.2015, 15:54
First of, you're checking for a keypress the wrong way. See THIS.
Second, this is 2015, stop using obsolete "Godfather" like functions such as "PlayerToPoint". We now have IsPlayerInRangeOfPoint and others.
Last of, it's very hard to say what's going on as the code is really messy and doesn't make much sense.
Unfortunately, you have to do this the hard way and that is to check each and every case (if statement) to find where your real problem lies.
Second, this is 2015, stop using obsolete "Godfather" like functions such as "PlayerToPoint". We now have IsPlayerInRangeOfPoint and others.
Last of, it's very hard to say what's going on as the code is really messy and doesn't make much sense.
Unfortunately, you have to do this the hard way and that is to check each and every case (if statement) to find where your real problem lies.