Does anyone know how to blueprint a way to get this done: restart level after 2 minutes of inactivity of the player?
I tried many things, but i dont get it working. I need it because there a several animations in the level which cannot be reversed. The level is displayed in a museum, and sometimes when new people arrive i would like to set the restart automatically, so they can start always in a “fresh” level
You would need to find out when your player is actually “inactive”. Once you know that, you can use “SetTimer” with 120 for the duration and hook up an Event to restart the level (just load it again?).
You could check if the player makes any input for mouse/keyboard movement. If he does, you call an event that calls “ClearTimer” if one is active. If he doesn’t you call the StartTimer from above.
Make sure to create a TimerHandle so you can actually reference and access the timer.
solved
Finally solved, after making a timer, the problem was the reset of 120 when the character moves. It appears you have to have use a threshold of .5 instead of 1. Apparantly there is always a movement even when the character doesnt move
These Axis Event tick. They are constantly sending out the event.
But they Axis Value is 0.0 if you don’t press the matching buttons.
In your InputSettings you setup what the buttons do. W for example would be 1 and S would be -1.
So if you press the button, you would instantly have 1 or -1. As long as you don’t press it it’s 0.
okay eXi, that sounds clear to me again, i didnt know that. Thanks a lot for all your help in this. I learned a lot by trying and trying and trying:D Up to the next challange!