MoveObject(gate1, 1385.557617, -2688.828857, 272.734619, 5); //5 is the speed of opening and the coords when the gate is opened