Shayan816 Posted June 21, 2017 Share Posted June 21, 2017 I'm trying to add a moving gate in another dimension but its not working.. the gate is not appearing in the dimension.. function () dim = 300 object = createObject(980, 1209.1999511719, -2037, 70.800003051758, 0, 0, 0) setElementDimension( object, dim ) end x,y,z = getElementPosition (object) Zone = createColCircle ( x,y, 7, 7 ) function open () moveObject ( object, 500, 1209.1999511719, -2037, 76.099998474121 ) end addEventHandler ( "onColShapeHit", Zone, open ) function close () moveObject ( object, 500, 1209.1999511719, -2037, 70.800003051758 ) end addEventHandler ( "onColShapeLeave", Zone, close ) Link to comment
!#NssoR_) Posted June 21, 2017 Share Posted June 21, 2017 dim = 300 x,y,z = 1209.1999511719, -2037, 70.800003051758 object = createObject(980, x,y,z, 0, 0, 0) setElementDimension( object, dim ) Zone = createColCircle ( x,y, 7, 7 ) function open ( thePlayer , matchingDimension ) if getElementType ( thePlayer ) == "player" and not matchingDimension then moveObject ( object, 500, x,y,z+5 ) end end addEventHandler ( "onColShapeHit", Zone, open ) function close ( thePlayer , matchingDimension ) if getElementType ( thePlayer ) == "player" and not matchingDimension then moveObject ( object, 500, x,y,z ) end end addEventHandler ( "onColShapeLeave", Zone, close ) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now