//MosEisley_A state Base { Conditions { } Actions { SetState "CheckFight" } } state CheckEmpty { Conditions { if EmptyTakeOver "ATST" == 1 goto SneekIn if EmptyTakeOver "ATST" == 0 goto CheckFight } Actions { ResetTimer "mintime=0" "maxtime=5" } } state SneekIn { Conditions { if TakenOver == 1 goto CheckFight //if already has taken something over if TakeOverRange < 1.5 goto StealATST if TakenOver "TakeOverTarget" == 1 goto Fight if HasTakeOverTarget == 0 goto CheckEmpty } Actions { SetTakeOverTarget "type=ATST" FollowCharacter "TakeOverTarget" "RUN" "ignore_radius" "can_go_off_path" } } state StealATST { Conditions { } Actions { TakeOver SetState "TakenOverFight" } } state CheckFight { Conditions { if Timer > 15 goto CheckEmpty ;if GotOpponent == 0 goto GoToOrigin } Actions { EngageOpponent "goalrange 1.5" "firerange=3" } } state TakenOverFight { Conditions { if TakenOver == 0 goto CheckFight } Actions { EngageOpponent "goalrange 0.1" "firerange=0.1" } }