In short, my OnEnd() method seems to be running when the task starts, and I am not sure what I am doing wrong.
All my code is handwritten, so I imagine I have messed something up. Basically, I have a conditional (WithinSight) that checks if the player is in sight and, if it is, runs the action...