Jump to content

Ayuda para Colocar Sonido Motor


Daniel1zD

Recommended Posts

sigue sin funcionar

function onEngineOn ( infernus ) 
    modelo = getElementModel(infernus) 
    if modelo == 411 then--id del auto 
        x, y, z = getElementPosition(infernus) 
        sonido = playSound3D ( "engine.mp3", x, y, z true) 
        setSoundMaxDistance(sound, 40) 
        attachElements(sonido, infernus) 
    end 
end 
  
addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn ) 

    "Flaky" version="1" type="script" /> 
    

Link to comment
function onEngineOn ( infernus ) 
    modelo = getElementModel(source) 
    if modelo == 411 then--id del auto 
        x, y, z = getElementPosition(source) 
        sonido = playSound3D ( "engine.mp3", x, y, z true) 
        setSoundMaxDistance(sound, 40) 
        attachElements(sonido, source) 
    end 
end 
  
addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn ) 

Link to comment
function onEngineOn ( infernus ) 
    modelo = getElementModel(source) 
    if modelo == 411 then--id del auto 
        x, y, z = getElementPosition(source) 
        sonido = playSound3D ( "engine.mp3", x, y, z, true) 
        setSoundMaxDistance(sound, 40) 
        attachElements(sonido, source) 
    end 
end 
  
addEventHandler ( "onClientVehicleEnter", getRootElement(), onEngineOn ) 

Link to comment
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...