Daniel_rpg
IF
ActionListEmpty()
See(NearestEnemyOf(Myself))
!Range(NearestEnemyOf(Myself),4)
Range(NearestEnemyOf(Myself),10)
THEN
RESPONSE #100
RunAwayFrom(NearestEnemyOf(Myself),25)
END
You will want to shorten the Action RunAwayFrom(NearestEnemyOf(Myself),25)
Description of the action from IEDSP
29 RunAwayFrom(O:Creature*,I:Time*)
Is a very nice command to use to escape your enemies when your hitpoints get low, provided there is somewhere to run to. The Time parameter is measured in AI updates. Since, by default, there are 15 AI updates per second, it is usually a rule of thumb to use multiples of 15, such as 90, 120, or 180.