Download

Getting reference to a anim montage dynamcially

Essentially we are working on a generic ability system which will be used to trigger the different attacks in the game. Each ability has a animation montage associated with it which will get played when the ability is executed. We could always create an ability object per character and hardcode the anim montage reference but I was wondering if there is a way to get the instance of the montage through BP script. For example i could attach an attack ability to a character and form the associated anim montage name
“[characterName]_Attack_Montage” , get the reference for the montage and pass it to the Play montage node . Looked at the load asset function but that doesnt seem to be the right path.