Godot Version
4.3
Question
I was wondering if there is any good way to make godot editor sugest names of animations like its already doing with for example $AnimationPlayer.play() but for my custom function.
var allow_animations: bool = true
func play_anim(anim_name: String ,uninterruptible: bool = false):
if not animation_player.is_playing(): allow_animations = true
if not allow_animations: return
animation_player.play(anim_name)
if uninterruptible: allow_animations = false