Jump to content

How to make something happen when you are at a height


Recommended Posts

Posted

Ok, i want to make a resource that lets me roll when i fall less that 10 meters but if i fall more than that i die. I need to be able to make the script know what height the player is above the ground, not above sea level. I know this is possible as it is done in the mta default parachute script

New CMG 2.0 Screenshot!

http://img560.imageshack.us/img560/4269/cmg2screen.png

CMG 2.0 Trailer!

Learn to script from simple video tutorials completely free! Click here for forum page

Was the scripter for CMG server!

Leaving CMG: 100%

Posted

haha i never saw that, i was looking on the server side function list for ages, never thought of client. So now i can use getElementPosition to get the players x,y,z and getGroundPosition then say, if the GetGroundPosition is <10 then it will start a timer asking isPlayerOnGround untill he hits the ground then executes the roll command else he gets a message saying your going to die, and dies when he hits the floor. Thanks alot denny

New CMG 2.0 Screenshot!

http://img560.imageshack.us/img560/4269/cmg2screen.png

CMG 2.0 Trailer!

Learn to script from simple video tutorials completely free! Click here for forum page

Was the scripter for CMG server!

Leaving CMG: 100%

Posted
id do the check onrender, for smoothness sake.

good luck with your parkour script! (that's what it sounds like you are making) if you want some help with walljumping, i have an improved version of my released script can share if you contact me.

can you send it to [email protected]? thanks for the good luck, i have a cleo one and its so cool so im trying my best to make one for MTA

New CMG 2.0 Screenshot!

http://img560.imageshack.us/img560/4269/cmg2screen.png

CMG 2.0 Trailer!

Learn to script from simple video tutorials completely free! Click here for forum page

Was the scripter for CMG server!

Leaving CMG: 100%

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
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...