RunAway

This bloc of code allows you to make an NPC run away from another NPC or object (an unit) for a certain distance.

The NPC which has been defined by this bloc of code will react to the unit he is running away from when he "sees" that unit, which is when the unit he is supposed to run away from gets to a certain distance.

This bloc of code uses two different parameters, operations and units.