i have problem with my gates scripting my lua file tht i use is as follows
gate1 = createObject ( object (a51_jetdoor) (11),-2439.599609375, 1538.099609375, 14.699999809265, 0, 0,0 )
function gate1Open
moveObject ( gate1, 2000, -2439.6000976563, 1546.3000488281, 14.699999809265 )
end
addCommandHandler("main", gate1Open)
function gate1Close
moveObject ( gate1, 2000, -2439.6000976563, 1538.0999755859, 14.699999809265)
end
addCommandHandler("main", gate1Close )
now how do i test dis in map editor i test it but the gate doesnt open im going mad with ths pls help me guys