Jump to content

Object on Another Dimension


Recommended Posts

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
  • Moderators
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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...