//DeathStarEscape_C state Base { Conditions { } Actions { KeepWeaponOut SetViewDistance "10" PrefersPlayers ;GetLocatorFromGroup "name=doora" SetState "GetLocator" } } state GetLocator { Conditions { if GotLocator == 1 goto StaticFight } Actions { GetLocatorFromGroup "name=doora" } } state StaticFight { Conditions { if GotLocator == 1 and if LocatorRange > 0.25 goto StaticFight } Actions { GoToLocator EngageOpponent "static" "firerange 99" } }