Try if the first one is rotates try the second one
function createTheGate ()
myGate = createObject ( 971 ,-3258.5517578125, 751.85546875, 116.78617095947, 0, 0, 9 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ( )
moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 90.78617095947 )
setTimer ( movingMyGateBack, 5000, 1 )
end
addCommandHandler("swat",openMyGate)
function movingMyGateBack ()
moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 116.78617095947 )
end
the second one
function createTheGate ()
myGate = createObject ( 971 ,-3258.5517578125, 751.85546875, 116.78617095947 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ( )
moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 90.78617095947 )
setTimer ( movingMyGateBack, 5000, 1 )
end
addCommandHandler("swat",openMyGate)
function movingMyGateBack ()
moveObject ( myGate, 3000, -3258.5517578125, 751.85546875, 116.78617095947 )
end