Jump to content

boton de dxdraw?


lLinux

Recommended Posts

Te paso a mostrar y explicar como lo hago en mi script de BF3:

  
function DeployMetClick(button, state) 
if state == "up" then -- Solo se activa al hacer click (y no tambien al soltarlo) 
return -- Si esta siendo soltado, cancelar. 
end 
local CursorX, CursorY = getCursorPosition() -- Posicion Del mouse 
if CursorX > 0.79 and CursorY > 0.917 then -- Si esta dentro de X,Y coordenadas 
if CursorX < 0.96 and CursorY < 0.96 then -- Si esta dentro de X,Y coordenadas 
Deploy() -- llamar la funcion Deploy 
fadeCamera(true, 1) -- Ocultar camara 
outputConsole("DEPLOYED") -- Tirar a consola del cliente "DEPLOYED" 
end 
end 
  
end 
addEventHandler("onClientClick", getRootElement(), DeployMetClick) 

Link to comment
  • Recently Browsing   0 members

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