#攻撃時のアニメーション

1 messages · Page 1 of 1 (latest)

spice roost
#

アイテムを使って攻撃した際にアニメーションを流したいのですが、うまくいきません。
アニコンで"v.attack_time"を使用してアニメーションをトリガーしようとしたのですが、Error:unhandled request for unknown variable 'vaariable.attack_time'と表示され、機能しません。
以下が使用しているアニコンです

{
    "format_version": "1.19.0",
    "animation_controllers": {
        "controller.animation.test.root": {
            "states": {
                "first_person":{
                    "animations":[
                        "hold_first_person"
                        ],
                        "transitions":[
                        {"third_person": "!context.is_first_person"},
                        {"attack":"v.attack_time"}
                        ]
                    },
                "third_person": {
                    "animations": [
                    "hold_third_person"
                    ],
                    "transitions":[
                        {"first_person": "context.is_first_person"},
                        {"attack":"v.attack_time"}
                    ]
                },
                "attack":{
                    "animations":[
                        "attack"
                    ],
                    "transitions":[
                        {"first_person":"c.is_first_person"},
                        {"third_person":"!c.is_first_person"}
                    ]
                }
                
            }
        }
    }
}```
junior inlet
#

↑player.entity.jsonで画像のようにvariablesの記述をし、attachablesファイル内でpre_animationの記述をすると使えるようになります↓