Jump to content

Elementos GUI


Sasu

Recommended Posts

como hago para que si detecte que es un gui no lo haga? Y ademas por que no se detiene el sonido?

function fuego(button, state, absoluteX, absoluteY, worldX, worldY, worldZ, clickedElement) 
if ( not getElementType(clickedElement) == "gui" ) then 
local x,y,z = getElementRotation ( localPlayer ) 
local rx,ry,rz = getElementPosition( localPlayer ) 
local kame = playSound3D("kame.mp3", rx, ry, rz) 
setTimer(createProjectile, 3500, 1, localPlayer, 20, _,_,_, 200, clickedElement, x, y, z) 
setTimer(stopSound, 7000, 1, kame) 
else 
stopSound(kame) 
end 
end 
addEventHandler("onClientClick", root, fuego) 

Link to comment
  • Recently Browsing   0 members

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