WhoAmI Posted May 30, 2016 Share Posted May 30, 2016 Hello there. I just want to know if is there possible to get position of light in vehicle, just something like https://wiki.multitheftauto.com/wiki/GetPedBonePosition but in vehicle Link to comment
Captain Cody Posted May 31, 2016 Share Posted May 31, 2016 God danm it that might actually work; try using HeadLights, and for vehicles with dual head lights, Highlights1 (Or 2) EDIT No it will not work due to it not being added under Chassis_Dummy. Instead it's added to the root vehicle.. Either that or it's ignored for some reason. Link to comment
WhoAmI Posted May 31, 2016 Author Share Posted May 31, 2016 Hm okay, but how to get the 'component' name of the vehicle? I just want to get front and back lights. @EDIT: I found it. https://wiki.multitheftauto.com/wiki/Ge ... Components Link to comment
Captain Cody Posted May 31, 2016 Share Posted May 31, 2016 The lights are not part of the vehicle components as defined in there. There are 2 for head lights and 2 for tail lights, both are mirrored. But getVehicleComponentLocation does not find them. Link to comment
WhoAmI Posted May 31, 2016 Author Share Posted May 31, 2016 Yea, I tried it already. I have to get its position manually for all vehicles. Link to comment
Captain Cody Posted May 31, 2016 Share Posted May 31, 2016 All you have to do is find the location of one light and mirror it. Link to comment
WhoAmI Posted May 31, 2016 Author Share Posted May 31, 2016 Yea, I figured it out already. 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