Greenie0101 Posted July 9, 2012 Share Posted July 9, 2012 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 Link to comment
denny199 Posted July 9, 2012 Share Posted July 9, 2012 Do you mean this?: https://wiki.multitheftauto.com/wiki/IsPlayerOnGround or this: https://wiki.multitheftauto.com/wiki/GetGroundPosition ? Link to comment
Greenie0101 Posted July 10, 2012 Author Share Posted July 10, 2012 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 Link to comment
Slothman Posted July 10, 2012 Share Posted July 10, 2012 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. Link to comment
Greenie0101 Posted July 11, 2012 Author Share Posted July 11, 2012 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 Link to comment
Slothman Posted July 15, 2012 Share Posted July 15, 2012 i just decided to upload the resource updates to community. https://community.multitheftauto.com/ind ... ls&id=3249 Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now