blueprint

Get Attack Montage Function

  • Exposure: public
  • UE Version: 5.3

Yggdrasil

October 2, 2023, 9:34 pm

Click the button above, it will automatically copy blueprint in your clipboard. Then in Unreal Engine blueprint editor, paste it with ctrl + v

1 comment

  • Yggdrasil

    January 18, 2024, 2:35 pm

    This function accepts two parameters, the MontageIndex (the number in the array to play, defaulted to -1) and the AnimMontageArray (the array of animation montages) and returns the animation montage.

    If the MontageIndex is greater than -1, it will select and return the animation montage at index MontageIndex from the AnimMontageArray otherwise it will select an animation montage at random from the AnimMontageArray and return that animation montage.

    If at any point the animation montage is invalid, it will print an error to the screen stating so. The >= has a -1 on the lower parameter check, it doesn't show on the graph above. This function has a fail-safe for invalid MontageIndex numbers according to the AnimMontageArray limits, as long as the AnimMontageArray has at least one element in it.