state Base { Conditions { } Actions { CanShootOffScreen DontPush SetViewDistance "50" SetMinViewHeight "-99.0" SetMaxViewHeight "999" SetMessage "name=BombGen_ATAT_Killed" "value=1" SetState "LookOut" } } state LookOut { Conditions { if GotOpponent == 1 and if OpponentRange < 10 goto Engage if Timer > 10 goto Engage if HeadTurnRestricted == 1 goto BackOff } Actions { ResetTimer SetOpponent "opponentType=Dragbomb" EngageOpponent "static" "offscreen" "firerange 100" "fireinterval 0.2" } } state Engage { Conditions { if GotOpponent == 0 goto LookOut if OpponentRange > 10 goto LookOut if Timer > 10 goto Engage if HeadTurnRestricted == 1 goto BackOff } Actions { ResetTimer SetOpponent "opponentType=Dragbomb" EngageOpponent "static" "offscreen" "firerange 100" "fireinterval 0.2" } } state BackOff { Conditions { if HeadTurnRestricted == 0 goto LookOut if HeadTurnRestricted == 1 goto BackOff } Actions { //GetLocatorFromGroup "name=AT_BM" "next" //GoToLocator "xz_rangecheck" "0.5" FaceOpponent "1" //SetState "LookOut" } } state BeenKilled { Conditions { } Actions { SetMessage "name=BombGen_ATAT_Killed" "value=2" } } state BeenDeactivated { Conditions { } Actions { SetState Base } }