Jump to content
This site uses cookies! Learn More

This site uses cookies!

armedunity.com uses cookies to improve user experience.

By continuing to use this site, you agree to allow us to store cookies on your computer.

  • 0
Blender-3d

Temporarily disable the jump

Question

How do I temporarily disable the function jump , when i go in colliding with a special cube , with this script below ?

Please login or register to see this code. Edited by Blender-3d

Share this post


Link to post
Share on other sites

4 answers to this question

Recommended Posts

  • 0

You should make a boolean, "canJump". Then put all of the code in an if statement with canJump, and change the bool value to false when you dont want to jump.

Edited by tomisy

Share this post


Link to post
Share on other sites
  • 0

You Could Just Write Collision Function OnCollision or some shit and then write jumpDelay = true;

Share this post


Link to post
Share on other sites
  • 0

Try OnTriggerEnter/Exit or OnCollisionEnter/Exit

Edited by nub

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×