Rudi Posted February 26, 2012 Posted February 26, 2012 Hallo Leute, ich bin gerade dabei meine ersten Gehversuche mit MTA und lua zumachen. Als Start dachte ich mir, dass ich per Miniscript den Antrieb eines Autos serverseitig ändere. Es klappt nicht und nun würde ich hier um Hilfe bitten.... Mein bisheriger Code: function handlingChange() setModelHandling(402, "driveType", "awd") end addEventHandler("onResourceStart", resourceRoot, handlingChange) und meine meta.xml sieht so aus: "NAME" version="1.0" type="script"/> Wo liegt mein Fehler bzw. warum klappt es nicht? MfG
Dark Dragon Posted March 2, 2012 Posted March 2, 2012 ich bin mir nicht sicher ob "resourceRoot" vordefiniert ist, versuch mal stattdessen getResourceRootElement(getThisResource())
krischkros Posted March 17, 2012 Posted March 17, 2012 Falls du interesse an einem Drifthandling hast, woran ich mehrere Stunden gearbeitet habe.. hier: setModelHandling(477, "mass", 1200) setModelHandling(477, "turnMass", 2998.3) setModelHandling(477, "dragCoeff", 2) setModelHandling(477, "centerOfMass", { 0, 0.1, -0.8 } ) setModelHandling(477, "percentSubmerged", 75) setModelHandling(477, "tractionMultiplier", 0.7) setModelHandling(477, "tractionLoss", 0.-- s8) --> setModelHandling(477, "tractionBias", 0.47) setModelHandling(477, "numberOfGears", 5) setModelHandling(477, "maxVelocity", 350) setModelHandling(477, "engineAcceleration", 50) setModelHandling(477, "engineInertia", 5) setModelHandling(477, "driveType", "rwd") setModelHandling(477, "engineType", "petrol") setModelHandling(477, "brakeDeceleration", -- s8) --> setModelHandling(477, "brakeBias", 0.45) setModelHandling(477, "ABS", false) setModelHandling(477, "steeringLock", 55) setModelHandling(477, "suspensionForceLevel", 1.4) setModelHandling(477, "suspensionDamping", 0.15) setModelHandling(477, "suspensionHighSpeedDamping", 0) setModelHandling(477, "suspensionUpperLimit", 0.28) setModelHandling(477, "suspensionLowerLimit", -0.05) setModelHandling(477, "suspensionFrontRearBias", 0.5) setModelHandling(477, "suspensionAntiDiveMultiplier", 0.3) setModelHandling(477, "seatOffsetDistance", 0.25) setModelHandling(477, "collisionDamageMultiplier", 0.1) setModelHandling(477, "monetary", 45000) setModelHandling(477, "modelFlags", 0x110000) setModelHandling(477, "handlingFlags", 0xC04007) setModelHandling(477, "headLight", 1) setModelHandling(477, "tailLight", 1) setModelHandling(477, "animGroup", 1) Wie du das änderst weißt du jetzt selber
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