//MosEisley_B state Base { Conditions { if Random < 0.5 goto ChooseNewLocator if AlwaysTrue == 1 goto Waiting } Actions { CanSeeBehind "FALSE" SetViewDistance "2" } } state Waiting { Conditions { if Timer > 40 and if Random < 0.5 goto Waiting if Timer > 40 goto ChooseNewLocator } Actions { ResetTimer "mintime=0" "maxtime=5" Idle } } state ChooseNewLocator { Conditions { if GotLocator == 1 goto GoToLocator if AlwaysTrue == 1 goto Waiting } Actions { GetLocatorFromGroup "name=Storm_Patrol" "random" } } state GoToLocator { Conditions { if PathBlocked == 1 goto ChooseNewLocator if GotOpponent == 1 goto Engage } Actions { GoToLocator "Walk" SetState "Waiting" } } state Engage { Conditions { if GotOpponent == 0 goto GoToLocator } Actions { EngageOpponent "goalrange 1.5" "firerange=3" } }