Well I don't have time to look too much into it, but it seems you set the Distance before you set the Target Unit, and the Target Unit is used to get the Distance. That means that you are finding the distance to null, which could be your problem. I haven't looked at the rest of the code to see if it would work or not.
Rollback Post to RevisionRollBack
Great to be back and part of the community again!
To post a comment, please login or register a new account.
@DarlD: Go
Well I don't have time to look too much into it, but it seems you set the Distance before you set the Target Unit, and the Target Unit is used to get the Distance. That means that you are finding the distance to null, which could be your problem. I haven't looked at the rest of the code to see if it would work or not.
Great to be back and part of the community again!