Linux_Shines Posted June 30, 2012 Share Posted June 30, 2012 Hello peoples, I'm coming with... problem(?) or simply, I call it an "wrinkle". My wrinkle is replace one line from vehicles.ide to MTA engine. I know, that a handling may be called like this: function handling() for _,veh in pairs(getElementsByType("vehicle")) do if getElementModel(veh) == 480 then setVehicleHandling(veh, "mass", 1440.0) setVehicleHandling(veh, "turnMass", 3513.6) setVehicleHandling(veh, "dragCoeff", 0.77) setVehicleHandling(veh, "centerOfMass", {0.0, 0.0, 0.004}) setVehicleHandling(veh, "percentSubmerged", 75) setVehicleHandling(veh, "tractionMultiplier", 0.74) setVehicleHandling(veh, "tractionLoss", 0.787) setVehicleHandling(veh, "tractionBias", 0.5) setVehicleHandling(veh, "numberOfGears", 5) setVehicleHandling(veh, "maxVelocity", 343.3) setVehicleHandling(veh, "engineAcceleration", 22.27) setVehicleHandling(veh, "engineInertia", 49.0) setVehicleHandling(veh, "driveType", "rwd") setVehicleHandling(veh, "engineType", "petrol") setVehicleHandling(veh, "brakeDeceleration", 4.2) setVehicleHandling(veh, "brakeBias", 0.57) setVehicleHandling(veh, "ABS", false) setVehicleHandling(veh, "steeringLock", 25.54) setVehicleHandling(veh, "suspensionForceLevel", 0.6) setVehicleHandling(veh, "suspensionDamping", 0.14) setVehicleHandling(veh, "suspensionHighSpeedDamping", 3.3) setVehicleHandling(veh, "suspensionUpperLimit", 0.05) setVehicleHandling(veh, "suspensionLowerLimit", -0.08) setVehicleHandling(veh, "suspensionFrontRearBias", 0.45) setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0.4) setVehicleHandling(veh, "seatOffsetDistance", 0.1) setVehicleHandling(veh, "collisionDamageMultiplier", 0.69) setVehicleHandling(veh, "monetary", 192500) setVehicleHandling(veh, "modelFlags", 65A624) setVehicleHandling(veh, "handlingFlags", 348803) setVehicleHandling(veh, "headLight", 1) setVehicleHandling(veh, "tailLight", 1) setVehicleHandling(veh, "animGroup", 19) end end end addEventHandler("onPlayerVehicleEnter", getRootElement(), handling) And it works good, but my question is - When I've an this line to replace: 480, comet, comet, car, COMET, COMET, null, executive, 7, 0, 0, -1, 0.735, 0.735, 1 is there any function to load this into MTA? Link to comment
0 Jaysds1 Posted June 30, 2012 Share Posted June 30, 2012 Sorry, but I didn't get what you meant on this line: "When I've an this line to replace:", try this: addEventHandler("onVehicleStartEnter",root,function() if(getElementModel(source) == 480)then setVehicleHandling(source, "mass", 1440.0) setVehicleHandling(source, "turnMass", 3513.6) setVehicleHandling(source, "dragCoeff", 0.77) setVehicleHandling(source, "centerOfMass", {0.0, 0.0, 0.004}) setVehicleHandling(source, "percentSubmerged", 75) setVehicleHandling(source, "tractionMultiplier", 0.74) setVehicleHandling(source, "tractionLoss", 0.787) setVehicleHandling(source, "tractionBias", 0.5) setVehicleHandling(source, "numberOfGears", 5) setVehicleHandling(source, "maxVelocity", 343.3) setVehicleHandling(source, "engineAcceleration", 22.27) setVehicleHandling(source, "engineInertia", 49.0) setVehicleHandling(source, "driveType", "rwd") setVehicleHandling(source, "engineType", "petrol") setVehicleHandling(source, "brakeDeceleration", 4.2) setVehicleHandling(source, "brakeBias", 0.57) setVehicleHandling(source, "ABS", false) setVehicleHandling(source, "steeringLock", 25.54) setVehicleHandling(source, "suspensionForceLevel", 0.6) setVehicleHandling(source, "suspensionDamping", 0.14) setVehicleHandling(source, "suspensionHighSpeedDamping", 3.3) setVehicleHandling(source, "suspensionUpperLimit", 0.05) setVehicleHandling(source, "suspensionLowerLimit", -0.08) setVehicleHandling(source, "suspensionFrontRearBias", 0.45) setVehicleHandling(source, "suspensionAntiDiveMultiplier", 0.4) setVehicleHandling(source, "seatOffsetDistance", 0.1) setVehicleHandling(source, "collisionDamageMultiplier", 0.69) setVehicleHandling(source, "monetary", 192500) setVehicleHandling(source, "modelFlags", 65A624) setVehicleHandling(source, "handlingFlags", 348803) setVehicleHandling(source, "headLight", 1) setVehicleHandling(source, "tailLight", 1) setVehicleHandling(source, "animGroup", 19) end end) Link to comment
0 Linux_Shines Posted July 1, 2012 Author Share Posted July 1, 2012 All what I need, is put some code from vehicles.ide to MTA (exactly this code is placed below). 480, comet, comet, car, COMET, COMET, null, executive, 7, 0, 0, -1, 0.735, 0.735, 1 Link to comment
0 diegofkda Posted July 2, 2012 Share Posted July 2, 2012 Unfortunately, this isn't possible in MTA as ide definitions aren't supported, who knows if it will support it in a future though. Link to comment
0 Linux_Shines Posted July 4, 2012 Author Share Posted July 4, 2012 I'll pray for this option. Thanks for quick reply. Thread may be closed. Link to comment
Question
Linux_Shines
Hello peoples, I'm coming with... problem(?) or simply, I call it an "wrinkle". My wrinkle is replace one line from vehicles.ide to MTA engine. I know, that a handling may be called like this:
And it works good, but my question is - When I've an this line to replace:
is there any function to load this into MTA?
Link to comment
4 answers to this question
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