Negriukas Posted August 20, 2014 Share 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 Link to comment
Et-win Posted August 20, 2014 Share Posted August 20, 2014 Then report this at: http://bugs.mtasa.com/view_all_bug_page.php Link to comment
Johnny Killstone Posted August 20, 2014 Share 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. Link to comment
DiSaMe Posted August 20, 2014 Share 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. Link to comment
Negriukas Posted August 20, 2014 Author Share 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. Link to comment
Grafu Posted August 24, 2014 Share 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 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