QoRaY Posted March 2, 2013 Posted March 2, 2013 (edited) I want to change the sounds of car. Audio files available below. Please help... - - - Audio Files Click Here ! - - - Edited March 4, 2013 by Guest
mjau Posted March 2, 2013 Posted March 2, 2013 Im not 100 percent sure, but i dont belive this is possible. unless there is some way to detect the RPM of the engine.
QoRaY Posted March 2, 2013 Author Posted March 2, 2013 My goal is not the RPM Style. Just change the sounds of car. I've seen on Youtube. But I could not.
QoRaY Posted March 4, 2013 Author Posted March 4, 2013 I saw on YOUTUBE. My friends say I've seen other servers.
mjau Posted March 5, 2013 Posted March 5, 2013 Well then ofc i belive you could use timers, so the first timer trigger when the player presses W and after he have held it for lets say 3 sec it changes to higher rpm sound and so it goes. And just to tell you, everything on youtube isnt real, editing a video to change the vehicle sound isnt hard.
HunT Posted March 5, 2013 Posted March 5, 2013 it's possible but is not easy : Example : function enable ( ) addEventHandler ( "onClientRender", getRootElement(), getSpeed ) end addEventHandler ("onClientVehicleEnter", getRootElement(), enable) function disable ( ) removeEventHandler ( "onClientRender", getRootElement(),getSpeed ) end addEventHandler("onClientVehicleExit", getRootElement(), disable) function getSpeed () sx, sy, sz = getElementVelocity (getPedOccupiedVehicle(localPlayer)) speed = math.floor(((sx^2 + sy^2 + sz^2)^(0.5))*180) end function playSoundSpeed () -- need onClientRender if speed == 0 then -- play sound elseif speed > 2 then -- play sound gear 1 -- etc...
QoRaY Posted March 6, 2013 Author Posted March 6, 2013 I mean, subject to a detailed. One can volunteer? Everyone comes in handy. An innovation for the game....
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