In this episode of unreal engine C++ tutorial series, I am going to show you how to play an animation montage through the C++ code. First I am going to define a UAnimMontage variable in the header file to hold kick and punch animation montages. We can assign animation montages to these variables in the editor. Then a new input actions for kick and punches, those actions will be bind to the PlayerInputComponent for relevant kick() and Punch() functions. These functions will play the animation montages assigned for above mentioned variables.
password=codelikeme_cppkick