Randomly execute different attack anim
Retarget these 2 anim from the anim pack. and their montage anim (from part 1):
Go to 3rd person BP event graph, add Random Anim Custom event and integer variable AttackNum:
(Assume use 2 anim above)
Graph as below:(If anim equal to 0, will execute 0 (original), if false, will exeute anim 1, etc)
Replace with random anim function in Attack custom node made in Part 1:
Add DelayDuration Float variable, add on end of anim montage nodes:
Also on part 1 attack graph:
Add random sound effect:
Import wav sound file (not mp3)
adjust pitch and volume if wanted by clicking the file
Open 3rd person BP, add sound location and location actor node
Create a sound cue, name as Punchsoundcue
Drag the sounds files in the cue graph and graph:
Change the sound in play sound node: