lcd12321 Posted August 25, 2014 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
Et-win Posted August 25, 2014 Posted August 25, 2014 getVehicleComponentPosition https://wiki.multitheftauto.com/wiki/Cl ... _functions Use wiki and easily search on 'component'...
lcd12321 Posted August 25, 2014 Author 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
Et-win Posted August 25, 2014 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.
lcd12321 Posted August 25, 2014 Author Posted August 25, 2014 I know it, just say how get bumper coordinates.
Einheit-101 Posted August 26, 2014 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).
DiSaMe Posted August 26, 2014 Posted August 26, 2014 https://wiki.multitheftauto.com/wiki/GetElementMatrix Look in the examples for getPositionFromElementOffset
lcd12321 Posted August 26, 2014 Author 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
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