naturalcause Posted November 15, 2013 Share Posted November 15, 2013 hello, i was watching this page for a while https://wiki.multitheftauto.com/wiki/GetVehicleHandling but i can not find how to change something for a handling for a car can i get an example please ? i realy want to understand this Link to comment
0 lilkid4000 Posted February 4, 2014 Share Posted February 4, 2014 function handling ( ) for _,veh in pairs(getElementsByType("vehicle")) do if getElementModel(veh) == 560 then setVehicleHandling (veh, "mass", 1600) setVehicleHandling(veh, "turnMass", 3921.3) setVehicleHandling(veh, "dragCoeff", 1.8 ) setVehicleHandling(veh, "centerOfMass", { 0, -0.4, 0 } ) setVehicleHandling(veh, "percentSubmerged", 75) setVehicleHandling(veh, "tractionMultiplier", 0.75) setVehicleHandling(veh, "tractionLoss", 0.85) setVehicleHandling(veh, "tractionBias", 0.52) setVehicleHandling(veh, "numberOfGears", 5) setVehicleHandling(veh, "maxVelocity", 400) setVehicleHandling(veh, "engineAcceleration", 20 ) setVehicleHandling(veh, "engineInertia", 10) setVehicleHandling(veh, "driveType", "rwd") setVehicleHandling(veh, "engineType", "petrol") setVehicleHandling(veh, "brakeDeceleration", 10) setVehicleHandling(veh, "brakeBias", 0.53) setVehicleHandling(veh, "steeringLock", 35) setVehicleHandling(veh, "suspensionForceLevel", 1.3) setVehicleHandling(veh, "suspensionDamping", 0.12) setVehicleHandling(veh, "suspensionHighSpeedDamping", 0) setVehicleHandling(veh, "suspensionUpperLimit", 0.28 ) setVehicleHandling(veh, "suspensionLowerLimit", -0.12) setVehicleHandling(veh, "suspensionFrontRearBias", 0.38 ) setVehicleHandling(veh, "suspensionAntiDiveMultiplier", 0) setVehicleHandling(veh, "seatOffsetDistance", 0.2) setVehicleHandling(veh, "collisionDamageMultiplier", 0.24) setVehicleHandling(veh, "monetary", 25000) setVehicleHandling(veh, "modelFlags", 0x40000000) setVehicleHandling(veh, "handlingFlags", 0x10200008 ) setVehicleHandling(veh, "headLight", 0) setVehicleHandling(veh, "tailLight", 1) setVehicleHandling(veh, "animGroup", 0) end end end addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handling ) That is a Vehicle Handling script feel free to use it and learn from it Link to comment
0 aliaqa Posted August 13, 2020 Share Posted August 13, 2020 @lilkid4000 what would be happend if we dont write this line addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handling ) Link to comment
0 Administrators Tut Posted August 14, 2020 Administrators Share Posted August 14, 2020 10 hours ago, aliaqa said: @lilkid4000 what would be happend if we dont write this line addEventHandler ( "onPlayerVehicleEnter", getRootElement(), handling Hi, please make a new thread in the Scripting section and elaborate on your question: https://forum.multitheftauto.com/forum/71-scripting/ Please don't forget to stay up to date with the forum rules. Link to comment
Question
naturalcause
hello,
i was watching this page for a while https://wiki.multitheftauto.com/wiki/GetVehicleHandling
but i can not find how to change something for a handling for a car
can i get an example please ? i realy want to understand this
Link to comment
3 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