Hello! Ive been trying to make a system, where a player enters a collision box and once detected it plays both a widget animation, and a 2D sound. That part I have accomplished, however I would also like for the event to not be repeatable after started once. And make it take 300 seconds for the player to be able to repeat said event. Any idea how to do this? Thanks
Hi! Try using Set Timer by Function Name and a Boolean variable to check if 300 seconds have passed.
I copied your code to explain it more clearly. Basically, at the end of the Custom Event, I just added Set Timer by Function Name, set the Function Name to the same Custom Event, and specified 300 seconds as the timer duration.
Finally, I created a Custom Event, named it Function, and made it so that when it starts, a variable will indicate that 300 seconds have passed, allowing the animation to be used again.
1 Like
I will give this a try immediately and get back too you! Thank you, give me just a few for a quick update 
Alright Ive done the same exact thing, I believe, I have made the same script as you have, in doing so, I believe something is happening, but yet I went into the collision box, It had played the sound, and the widget animation after entering, exiting, and entering again, this had duplicated the sound and the widget animation unfortunately. Did you make a function variable by chance? If so that is what I am doing wrong here, as I did not make one, seeing as you had made a custom event named “function”
Oh, I almost forgot! Before Set Timer by Function Name, you need to set the Playing Boolean variable to True, otherwise, the logic might not work correctly.
Also, for testing, you can set a small Time value (
red) in Set Timer by Function Name to quickly check if everything is working properly.
And don’t forget to add Playing = True (
blue) before the timer, or it might not trigger correctly.
1 Like
For the future: if you want to use Set Timer By Function Name, you can set any name in the Function Name value. The most important thing is not to forget to create a Custom Event for this timer, and the Custom Event name must match the name set in Function Name in Set Timer By Function Name.
Additionally, there are several types of timers in Unreal Engine, and they work differently, so it’s important to choose the one that best fits your needs.
1 Like
Got it down pat man! That was the fix
I really appreciate the help, often times when I put out a question on here, it usually falls on deaf ears, so This really means alot! 