//MosEisley_A state Base { Conditions { } Actions { SetState "CheckForSpeeder" } } state CheckForSpeeder { Conditions { if EmptyTakeOver "Speeder_Land" == 1 goto SneekIn if EmptyTakeOver "Speeder_Land" == 0 goto Wait } Actions { ResetTimer "mintime=0" "maxtime=5" } } state Wait { Conditions { if Timer > 10 goto CheckForSpeeder } Actions { FollowPath "WALK" } } state SneekIn { Conditions { if TakenOver "TakeoverTarget" == 1 goto Wait if TakeOverTargetInTriggerArea "ParkingSpace" == 1 goto Wait if TakeOverRange < 1 goto StealSpeeder } Actions { SetTakeOverTarget "type=Speeder_Land" FollowCharacter "TakeOverTarget" "TIPTOE" "ignore_radius" "can_go_off_path" } } state StealSpeeder { Conditions { if LocatorRange < 1 goto GetOutSpeeder } Actions { TakeOver SetState GoToLoc } } state GoToLoc { Conditions { if LocatorRange < 1 goto GetOutSpeeder if AlwaysTrue == 1 goto GoToLoc } Actions { SetLocator "name=Park_Loc" GoToLocator "WALK" } } state GetOutSpeeder { Conditions { } Actions { ReleaseTakeOver SetState RunAway } } state RunAway { Conditions { if LocatorRange < 1 goto Wait } Actions { GetLocatorFromGroup "name=talk" "random" GoToLocator "RUN" } }