In this tutorial we will add a Slow Motion Action Skill, kinda like in Max Payne.
1. Create 2 new variables inside BP_CharacterBase
bool – IsUsingActionSkill (default value is false)
int – CooldownSeconds (default value is 5)
2. Still on the character, recreate this blueprint logic
3. Open the W_PlayerHUD widget and add a new progress bar (this is optional)
Now whenever F is pressed, the game will go into Slow Motion, after a few seconds it will go back to normal, then start a timer (cooldown) and reset the action skill.