//MosEisley_A state Base { Conditions { } Actions { //SetSide "goodiebaddie" //SetSide "goodie" OverrideAnimation "from=ALL" "to=Panic" SetState GoToLocator } } state GoToLocator { Conditions { if OpponentIsAThreat == 1 goto preTakenHit if OffScreenTimer > 10 goto OffScreen } Actions { FollowPath "RUN" } } state preTakenHit { Conditions { } Actions { SetLastAttacker "attacker=opponent" SetState TakenHit } } state TakenHit { Conditions { if Timer > 3 and if LastAttackerRange > 2.5 goto GoToLocator if OffScreenTimer > 10 goto OffScreen } Actions { ResetTimer MoveAwayFromLastAttacker "99" "RUN" } } state OffScreen { Conditions { } Actions { Kill } }