Thanks for helping, but still haven't got it working. The object does create but it doesn't move.
It's on a race map, don't know if that matters.
Here's my script:
function gate()
myGate = createObject ( 18284, 4207.430176, -1787.572388, 75.101517 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), gate )
function moveIt (thePlayer )
moveObject ( myGate, 3000, 4207.430176, -1787.572388, 95.101517 )
setTimer ( moveBack, 5000, 1, thePlayer )
end
addCommandHandler("myCommand",moveIt)
function moveBack ()
moveObject ( myGate, 3000, 4207.430176, -1787.572388, 75.101517 )
end
And this is the line in my meta.xml: