#Query not working I think?

1 messages · Page 1 of 1 (latest)

misty dune
#

I'm making a animation_controller .json file and it doesn't seem to work any ideas?

  "format_version": "1.10.0",
  "animation_controllers": {
    "controller.animation.player.throwables": {
      "states": {
        "default": {
          "transitions": [
            {
              "throw_item": "query.is_item_name_any('slot.weapon.mainhand', 0, 'bat:throwable_item') && query.is_using_item"
            }
          ],
          "on_entry": [
            "@s bat:reset_player"
          ]
        },
        "throw_item": {
          "transitions": [
            {
              "default": "1.0"
            }
          ],
          "on_entry": [
            "@s bat:throw_item",
            "/clear @s bat:batarang -1 1"
          ]
        }
      }
    }
  }
}```
mortal cairn
#

initial_state is inside the ac right?

misty dune
mortal cairn
#

ACs need an initial state

misty dune
#

And what do they do exactly?

mortal cairn
#

Initialize the default state?

#

It sets the default state of the ac

misty dune
mortal cairn
#

yep