lcd12321 Posted August 25, 2014 Share Posted August 25, 2014 for example i want to get position for bump_rear_dummy on vehicle sultan. Sultan coord 0 0 2.8 rear bumper position -1 -1.7 0 sultan degrees 112 Link to comment
Et-win Posted August 25, 2014 Share Posted August 25, 2014 getVehicleComponentPosition https://wiki.multitheftauto.com/wiki/Cl ... _functions Use wiki and easily search on 'component'... Link to comment
lcd12321 Posted August 25, 2014 Author Share Posted August 25, 2014 getVehicleComponentPosition https://wiki.multitheftauto.com/wiki/Cl ... _functions Use wiki and easily search on 'component'... it always returns -1 -1.7 0 even vehicle stays on coords 500 500 4 Link to comment
Et-win Posted August 25, 2014 Share Posted August 25, 2014 Because the bumper is attached to the vehicle? Try 'getElementPosition', but I don't know or it will work. Otherwise math will be good. Link to comment
lcd12321 Posted August 25, 2014 Author Share Posted August 25, 2014 I know it, just say how get bumper coordinates. Link to comment
Einheit-101 Posted August 26, 2014 Share Posted August 26, 2014 There is a wiki example for "getPositionFromElementOffset", search it. Btw. Its not yet possible to find misc_c component world position (hook of Towtruck or Rhino's Gun muzzle for example). Link to comment
DiSaMe Posted August 26, 2014 Share Posted August 26, 2014 https://wiki.multitheftauto.com/wiki/GetElementMatrix Look in the examples for getPositionFromElementOffset Link to comment
lcd12321 Posted August 26, 2014 Author Share Posted August 26, 2014 https://wiki.multitheftauto.com/wiki/GetElementMatrixLook in the examples for getPositionFromElementOffset I tried this but maybe coords of bumper is wrong or i don't understand anything 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