name="Debug 2"
description=(
    "THIS IS A DEBUG MISSION\n\n" ..
    "A simple test for TnL's collision detection. One tank shoots at another. " ..
    "Not interesting at all. Really.")

startup := method(
    x := vector(7790,0,1566)
    tank1 := Tank clone
    tank1 setLocation(x)
    tank1 setOrientation(matrix(1,0,0
                                0,1,0
                                0,0,1))
    tank1 ai := coro(me,
      self act := me turret aimAbsolute clone start(me, me turret, vector(-1,0.2,0) norm)
      manage(act)
      loop(pass)
    )


    Game addActor(tank1)

    tank2 := tank1 clone
    tank2 setLocation(x + vector(0,0,-40))
    tank2 setControlMode(Actor UNCONTROLLED)

    Game addActor(tank2)
    
    coro(tank,
        sleep(5)
        "Fire!"say
        tank armament weapon("Cannon") trigger
        Clock pause) start(tank2)
    Game setView(tank2, 0)
)

