No,i want it something liek this:
when the unit comes within 300 range of critter,order the critter to run for 5 seconds away from the unit.Away means that if i approach the unit it turns around and starts fleeing for 4 seconds.If i did it with the rect,and the rect was behind me,the unit would run in my direction,then behind me.