Hey Unreal community, does anyone know how to trigger a function for X amount of times? For eample, the event will tell the function to trigger but only a for a number of times. After that number of times, the function will stop working and the event will not trigger anymore for the duration of the gameplay.
A sample would be my FirstPersonCharacter can only its ability for 3 times. After it fires that ability from its weapon (gun), 3 times, it will stop firing for the rest of the gameplay and won’t allow the player to fire that abiltiy no matter what.