Thanks it woked but i canot oppen gate can u help me in that?
local gate1 = createObject ( 971, -310.29998779297, 1313.5, 56.299999237061, 0, 0, 81.25 )
local state = 0
function move()
if state == 0 then
moveObject ( gate1, -310.29998779297, 1313.5, 49.099998474121, 81.25 )
state = state + 1
elseif state == 1 then
moveObject ( gate1, -310.29998779297, 1313.5, 56.299999237061, 81.25)
state = state - 1
end
end
addCommandHandler("7732", move )