11 lines
306 B
GDScript
11 lines
306 B
GDScript
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)
|