gate1 = createObject ( 3095, 110.80000305176, 1055.8000488281, 16.700000762939, 0, 270, 183.98254394531 )
gate2 = createObject ( 2951, 110, 1071.599609375, 12.60000038147, 0, 0, 91.99951171875 )
function opengate1()
moveObject (gate1, 2000, 110.80000305176, 1055.8000488281, 15)
end
addCommandHandler("open1", opengate1)
function closegate1()
moveObject (gate1, 2000, 110.80000305176, 1055.8000488281, 16.700000762939)
end
addCommandHandler("close1", closegate1)
function opengate2()
moveObject (gate2, 2000, 110.80000305176, 1055.8000488281, 15)
end
addCommandHandler("open2", opengate2)
function closegate2()
moveObject (gate2, 2000, 110, 1071.599609375, 16.60000038147)
end
addCommandHandler("close2", closegate2)
try this commands are :/open1
/open2
/close1
/close2