Jump to content

Ayuda con scripts gate


Julian09123

Recommended Posts

No se moverà porque todas las posZ son iguales!. Probà asi

objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
function mover () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
end 
addCommandHandler ("abrir", mover ) 
  
  
function close () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
end 
addCommandHandler (cerrar", close ) 
  
 

Edited by Guest
Link to comment
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
    end 
) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
    end 
) 

Link to comment
No se moverà porque todas las posZ son iguales!. Probà asi
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
function mover () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
end 
addCommandHandler ("abrir", mover ) 
  
  
function close () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
end 
addCommandHandler (cerrar", close ) 
  
  
 

No aparece el gate

Link to comment
Como que no aparece
-- probà asi. Ami me anda
  
function load () 
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
end 
addEventHandler ( "onResourceStart", getRootElement(), load ) 
  
  
function mover () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
end 
addCommandHandler ("abrir", mover ) 
  
function close () 
     moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
end 
addCommandHandler (cerrar", close ) 
  
  
 

Link to comment
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
    end 
) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
    end 
) 

Link to comment
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
    end 
) 
  
addCommandHandler ( "puerta", 
    function ( ) 
        moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
    end 
) 

castillo el gate aparece pero no se mueve

Link to comment
objeto = createObject ( 980, 96.599998474121, 1921.4000244141, 20.89999961853, 0, 0, 90 ) 
  
addCommandHandler ( "abrir", 
    function ( ) 
        moveObject ( objeto, 50000, 96.599998474121, 1921.4000244141, 15.89999961853 ) 
    end 
) 
  
addCommandHandler ( "cerrar", 
    function ( ) 
        moveObject ( objeto, 5000, 96.599998474121, 1921.4000244141, 20.89999961853 ) 
    end 
) 

Link to comment
  • Recently Browsing   0 members

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