|Topic was automatically imported from the old Question2Answer platform.
So i was wandering if it was possible to play an animation when a signal is emitted, just so i dont have to create a script for each time i want to do simple behaviour such as that. I would have to create a different script each time I wanted to connect a signal to do anything. Or maybe i can create a single script i can reuse to connect a signal to call any function. I already tried to use the advanced option in the connect section and to connect the signal to the play method in the animation player, giving the “StringName” argument, but sometimes it fails, it doesnt seem to work everytime though, it sends an error saying that he didn’t find the animation, but the name of the animation in the error is blank, so its like it doesn’t receive the argument. I don’t know, any suggestions?