Bennington Posted October 9, 2010 Share Posted October 9, 2010 Hey coders, For one of my mods, I need to check if my vehicle is on the ground and not in the air. Is there an opcode for that? I don´t need opcodes like 06A2, cause it could be the car is driving up/down a hill (by the way, are the coordinates referred to the car or the world?). Link to comment https://gtaforums.com/topic/460699-ground-contact/ Share on other sites More sharing options...
TheSiggi Posted October 9, 2010 Share Posted October 9, 2010 Store the cars posotion, use 02CE: 16@ = ground_z_at 2@ 3@ 4@ and check the value of 16@ Link to comment https://gtaforums.com/topic/460699-ground-contact/#findComment-1060156182 Share on other sites More sharing options...
yair1221 Posted October 9, 2010 Share Posted October 9, 2010 or 81F3: not car 0@ in_air Link to comment https://gtaforums.com/topic/460699-ground-contact/#findComment-1060156243 Share on other sites More sharing options...
ZAZ Posted October 9, 2010 Share Posted October 9, 2010 or 09D0: car 5@ on_wheels Link to comment https://gtaforums.com/topic/460699-ground-contact/#findComment-1060156405 Share on other sites More sharing options...
Bennington Posted October 9, 2010 Author Share Posted October 9, 2010 Wow thank you all Three ways to check it and I didn´t find any of it *_* @The_Siggi Oh yeah I knew that opcode but I forgot it Link to comment https://gtaforums.com/topic/460699-ground-contact/#findComment-1060156473 Share on other sites More sharing options...
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