Lets say there are 2 actors. Actor 1 and Actor 2. And lets give them a variable, Actor 1 is A and Actor 2 is B. So....there is a boolean, its called detectB.it is false. if (detectB= false, look forB in a certain radius . if a B is in a certain radius, detectB=true how would you make a code like that?