Files
2026-05-24 17:10:09 -03:00

11 lines
306 B
GDScript
Raw Permalink Blame History

This file contains invisible Unicode characters
This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
extends Node3D
@onready var _animation_tree: AnimationTree = %AnimationTree
@onready var _hurt_shot_path: String = "parameters/HurtShot/request"
## Play a OneShot hurt animation.
## This animation is played in paralel with other states.
func hurt() -> void:
_animation_tree.set(_hurt_shot_path, true)