state Base { Conditions { } Actions { CanShootOffScreen DontPush SetMinViewHeight "-99.0" SetMaxViewHeight "999" SetState "LookOut" } } state LookOut { Conditions { if GotOpponent == 1 goto Engage } Actions { GoToOrigin } } state Engage { Conditions { if GotOpponent == 0 goto LookOut if HeadTurnRestricted == 1 goto BackOff } Actions { EngageOpponent "static" "offscreen" "firerange 25" "fireinterval 0.2" } } state BackOff { Conditions { } Actions { FaceOpponent "1" SetState LookOut } }