'== included in the AI scripts file =='

'start out happy with where we are
If s.controller.goalx = 0 Then s.controller.goalx = s.x
If s.controller.goaly = 0 Then s.controller.goaly = s.y

'try to avoid collisions: sets gox & goy to point away from nearby ss
'setProximityAvoid(s)

'fly in circles around the goal
AI.holdingPattern(s)

'face the direction we decided
AI.face(s, "go")
AI.go(s, 1)

'fire everything
If s.controller.vars.get("firing") = 1 Then AI.fireEverything(s)