How to code a "Stay 2 seconds on the ground" win condition ?

Hello everyone,

I want to code the win condition of my game is to stay on the ground for 2 or more seconds,
how can i code this in Verse ?

Thanks

1 Like

Hi,
You’re in luck!! There is a method in the Verse API that checks exactly for that condition. You would simply get a reference to the FortCharacter, and use the IsOnGround.

To give you an idea of what the code would look like, watch this tutorial. In it, instead of using IsOnGround, he is using IsCrouched, which works the same way.

More specific, something like this:

2 Likes