{
  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.silverlabs_nat.ray.main": {
      "initial_state": "default",
      "states": {
        "default": {
          "on_entry": [
            "@s silverlabs_nat:complete_attack"
          ],
          "transitions": [
            { "escape": "!q.is_powered && q.is_avoiding_mobs" }
          ]
        },
        "escape": {
          "on_entry": [
            "v.escape_timer = query.life_time + 3;"
          ],
          "transitions": [
            { "hide": "query.life_time > (v.escape_timer ?? 0)" }
          ]
        },
        "hide": {
          "on_entry": [
            "v.hide_timer = query.life_time + 3;",
            "@s silverlabs_nat:start_hide"
          ],
          "transitions": [
            {
              "default": "(query.life_time > (v.hide_timer ?? 0)) || !q.is_powered"
            }
          ]
        }
      }
    }
  }
}
