hmm, the gate is here, but it isn't moving, why?
local tempCol = createColSphere ( -2696.5, -1.3999999761581, 3.2999999523163, 10.0 )
ourGate = createObject (980, -2696.6999511719, -1.7000000476837, 6.0999999046326, 0, 0, 90) -- change x,y,z to the gate co-ordinates, change rX,rY,rZ to the gate rotation co-ordinates. and for sure change objectIDOrTheGateID to the gate ID.
ourColShape = createColCircle (-2696.5, -1.3999999761581, 3.2999999523163, 10.0) -- change x,y,z to the x,y,z of the ColCirle
function opendagate()
moveObject (ourGate, 2000, -2696.6999511719, -13.2, 6.0999999046326) -- change x,y,z to co-ordinates of the gate after moving. and timeInMili seconds to time which the gate will open. for ex: 1000 : the gate will open after a second when the player hit the colShape.
end
addEventHandler("onColShapeHit", ourColShape, opendagate)
function closedagate()
moveObject (ourGate, 2000, -2696.6999511719, -1.7000000476837, 6.0999999046326) -- change x,y,z to co-ordinates of the gate normal position of the gate to close it. and timeInMili seconds to time which the gate will close. for ex: 1000 : the gate will close after a second when the player leave the colShape.
end
addEventHandler("onColShapeLeave", ourColShape, closedagate)