9 lines
297 B
GDScript
9 lines
297 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():
|
||
_animation_tree.set(_hurt_shot_path, true)
|