How do I do this entity mechanic?

I made an entity that will damage you and slow you for 2.2 seconds if you sprinted 5 seconds prior
But the problem is…
How do I make it so after clicking sprint, it makes a 5 second time frame for the entity to damage if it appears?
Basically how to make it NOT damage you after 5 seconds after pressing sprint

Ok so…

I think you should add a counter timer, which will count up to 5 seconds, but will reset when the “xsprint” stop sprint button is clicked, however, if the counter reaches 5 then do the entity mechanic

If you want me to elaborate I can
BUT I cannot tell you how to configure the devices :sweat_smile:

1 Like

My game doesn’t have a “stop sprint” button, you have to manually click “walk” to stop sprinting
But uh…
Please elaborate since I’m kinda duhmbheaded most times

1 Like

Wait wait wait I also need to add that the entity only starts appearing in the MIDDLE of the game, so that idea most likely wont work

Shouldnt the walk button technically work as a stop sprint button?

1 Like

well you need to get out of crawling state by clicking walk

1 Like

So create a counter timer (Using this guide)

Then umm use make the counter timer goal 5 seconds, and spawn the entity when the counter reaches the limit (IDK how to reset the timer)

Use the walk “Game - Overlay” and wire to the counter and when click reset counter

Yeah I THINK that’s it

3 Likes

Well to make it start in the middle of the game, you could add some sort of trigger mechanic to start running said system

1 Like

I think I’m just gonna make a new overlay for the middle of the game.
Thank you though! :>

1 Like

Thank you so much!!!

Wait can you use the guide even without pics?

Just in case

1 Like

yeah I’m not a visual learner lol

1 Like

This topic was automatically closed 3 hours after the last reply. New replies are no longer allowed.