Noah_Antilles Posted June 10, 2017 Share Posted June 10, 2017 Hey guys, In a model I've added a custom vehicle component (gearflapleft) What it is supposed to do is rotate 90 degrees when I press u. This works perfectly, however, It also scales the component about three times larger. What's going on here? function shamalFunctions() local vehicle = getPedOccupiedVehicle(localPlayer) local x, y, z = getVehicleComponents(vehicle, "gearflapleft" ) if(vehicle)then if getElementModel(vehicle) == 519 then local rx, ry, rz = getVehicleComponentRotation(vehicle, "gearflapleft") setVehicleComponentRotation(vehicle, "gearflapleft", rx, ry+90, rz) end end end bindKey("u", "down", shamalFunctions) Pics for a better explanation: https://gyazo.com/a41f4801a76a3894671452f0598ac814 https://gyazo.com/b399008953774d5216db6f30f9895dde Thanks for your help! Link to comment
Einheit-101 Posted June 11, 2017 Share Posted June 11, 2017 Reset X form of this component in 3ds max, this is an ancient bug. 1 Link to comment
Noah_Antilles Posted June 11, 2017 Author Share Posted June 11, 2017 Thanks for your help @Einheit-101 It fixed my problem. I would've never figured this out on my own, so thanks a lot Link to comment
Einheit-101 Posted June 11, 2017 Share Posted June 11, 2017 No Problem, there are trillions of bugs that can happen because something goes wrong while exporting models, its not even funny anymore. 1 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