Zaloguj się by uzyskać pełen dostęp. Nie masz jeszcze konta? Założ je już teraz w kilka sekund.

Wysłany: 2015-03-11, 00:16


Aski







Wiek: 31
Na forum: 4263 dni
Posty: 10



Respekt: 50

Mam problem z ustawieniem handlingu dla motor?w poniewa? jak pr?buje to motor staje na jednym kole albo jak jade to jest wolny i skr?ca.

function handling (  )
for _,veh in pairs(getElementsByType("vehicle")) do
   if getElementModel(veh) == 522 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", 36 )
        setVehicleHandling(veh, "engineInertia", 10)
        setVehicleHandling(veh, "driveType", "rwd")
        setVehicleHandling(veh, "engineType", "diesel")
        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 )


Ostatnio zmieniony przez MeeShuffle 2015-03-11, 06:47, w całości zmieniany 1 raz  
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-11, 06:49


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

Zwyczajnie ?le ustawiony handling, z?e warto?ci, nie widz? sensu tworzenia tematu.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-11, 06:49


MeeShuffle

Programista/Grafik






Wiek: 33
Na forum: 4535 dni
Posty: 2758
Nick w MP: Shuffle

Piwa: 8578

Respekt: 535,3
Respekt: 535,3

Zwyczajnie ?le ustawiony handling, z?e warto?ci, nie widz? sensu tworzenia tematu.

Podpis

https://shufflecode.pl
Static Codes and Graphics - Join our discord!
Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-11, 12:00


Aski







Wiek: 31
Na forum: 4263 dni
Posty: 10



Respekt: 50

Mo?e znasz warto?ci jakie mog?y by mi pom?c albo jakie? www dotycz?ce ustawie??

Postaw piwo autorowi tego posta
 

 
Wysłany: 2015-03-11, 21:20


Aski







Wiek: 31
Na forum: 4263 dni
Posty: 10



Respekt: 50

Nie chc? na zasadzie ?e Mo?e wyjdzie mo?e nie, chc? wiedzie? co za co jest odpowiedzialne.

Postaw piwo autorowi tego posta
 

 
Tagi: handling-motory
Anonymous





Na forum: 245 dni
Posty: 1



Anonymous Koniecznie zajrzyj na:






Skocz do:  
Wyświetl posty z ostatnich:   
GTAONLINE.PL » JĘZYKI PROGRAMOWANIA » LUA Ten temat jest zablokowany bez możliwości zmiany postów lub pisania odpowiedzi

Nie możesz pisać nowych tematów
Nie możesz odpowiadać w tematach
Nie możesz zmieniać swoich postów
Nie możesz usuwać swoich postów
Nie możesz głosować w ankietach
Dodaj temat do Ulubionych
Wersja do druku