//trailertrash State Base { Conditions { } Actions { SetState GoToEnd } } State GoToEnd { Conditions { if OffScreenTimer > 4 goto Die if GotLocator == 0 goto Wander } Actions { GetLocatorFromGroup "name=caravan_end" "random" GoToLocator "RUN" SetState Die } } State Wander { Conditions { if OffScreenTimer > 4 goto Die if Timer > 5 goto GoToEnd } Actions { ResetTimer FollowPath "RUN" } } State Die { Conditions { } Actions { Kill } }