PARAM 1 shootrange 3 PARAM 2 engagedist 1.5 state Base { Conditions { if Message "JangoFight" > 0 goto Kill ;JangoFight is set by the game code. Mainly so can jumo to the JangoFight section in testing. } Actions { CanShootOffScreen KeepWeaponOut BreakFormation SetState "Wander"" } } state Wander { Conditions { if Message "JangoFight" > 0 goto Kill ;JangoFight is set by the game code. Mainly so can jumo to the JangoFight section in testing. if GotOpponent == 1 goto Fight } Actions { FollowPath "WALK" //FollowPlayer "2 } } state Fight { Conditions { if Message "JangoFight" > 0 goto Kill ;JangoFight is set by the game code. Mainly so can jumo to the JangoFight section in testing. if Message "JangoFight" > 0 goto Kill if GotOpponent == 0 goto Wander } Actions { EngageOpponent "goalrange engagedist" "firerange shootrange" } } state Kill { Conditions { } Actions { Kill } }