Jump to content

hacer que una puerta se mueva


zell

Recommended Posts

para hacer que la puerta se mueva esta bueno? (se abren por comando)

local gate = createObject(ID 580, X, Y, Z, ROTATION 0, 0, 0) 
local gate2 = createObject(ID 580, X, Y, Z, ROTATION 0, 0, 0) 
  
function open() 
   moveObject ( gate, 2000, X, Y, Z, 0, 0, 0 ) 
end 
addCommandHandler("openg", open) 
  
function close() 
   moveObject ( gate, 2000, X, Y, Z, 0, 0, 0 ) 
end 
addCommandHandler("closeg", close) 
  
function opengate2() 
    moveObject (gate2, 2000, X, Y, Z, 0, 0, 0 ) 
end 
addCommandHandler("openg2", opengate2) 
  
function close() 
    moveObject (2000, X, Y, Z, 0, 0, 0) 
    end 
    addCommandHandler("closeg2", closegate2) 

Link to comment
  • Recently Browsing   0 members

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