Jump to content

Ayuda para Colocar Sonido Motor


Daniel1zD

Recommended Posts

Posted

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" /> 
    

Posted
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 ) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
Posted

y el debugscript? arroja algun error?

Actual Nick: [XGN]BorderLine

Actual Clan: XLatino

Actual Status: Staff, Mod Level 1

(BOSS)Yakuza - [vS]Yakuza - [sXE]Yakuza - [uG]Yakuza - [FTLS]Racing - [XGN]Borderline

Posted
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 ) 

rsilex.png.0e6ad382b3fdc3cbe6390e3e847572c9.png
  • Recently Browsing   0 members

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