monsterfangen/assets/models/round_bat/round_bat_skin.gd

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