//BlockadeRunner_B state Base { Conditions { if OnGround == 1 goto ReleaseLocator } Actions { //Sets the side to baddie in case any neutrals want to use this script SetSide "baddie" KeepWeaponOut BreakFormation ResetTimer ;SetState "Wander" } } state ReleaseLocator { Conditions { } Actions { ReleaseLocator SetState "Wander" } } state Wander { Conditions { if GotOpponent == 1 goto Fight if OffScreenTimer > 5 goto Kill } Actions { KeepWeaponOut "FALSE" ;FollowPath "Walk" FollowPlayer } } state Fight { Conditions { if GotOpponent == 0 goto Wander } Actions { EngageOpponent "goalrange 1.5" "firerange 3" } } state Kill { Conditions { } Actions { SetMessage "name=NumMissionBaddies" "increment=1" Kill } }