Negriukas Posted August 20, 2014 Posted August 20, 2014 Hello, I'm making my vehicle shop system which it spawn the vehicle near the player exactly like freeroam, Sometimes it works fine and sometimes not because i recently added a isPedOnGround check and it seems that it's not stable. Results: false true
Et-win Posted August 20, 2014 Posted August 20, 2014 Then report this at: http://bugs.mtasa.com/view_all_bug_page.php
Johnny Killstone Posted August 20, 2014 Posted August 20, 2014 Well isn't freeroam spawning the vehicles a bit up in the air so they'll fall down a bit and then balance up? I agree that it'll look more nice if you use isPedOnGround but the problem itself can't be that hard to workaround.
DiSaMe Posted August 20, 2014 Posted August 20, 2014 As a workaround, you can use either of these functions: isLineOfSightClear getGroundPosition Ped's center is 1 unit above the ground.
Negriukas Posted August 20, 2014 Author Posted August 20, 2014 As a workaround, you can use either of these functions: isLineOfSightClear getGroundPosition Ped's center is 1 unit above the ground. Thank you! I'll try to figure out how to make it.
Grafu Posted August 24, 2014 Posted August 24, 2014 This guy seems to know what he is doing Always trying all the best I can ;p https://wiki.multitheftauto.com/wiki/GetPedMoveState
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