Jump to content

Teleport / setElementPosition


GerardWay

Recommended Posts

Posted

Can anyone give me an example of how I could create a marker at the coordinates 1548.69153, -1364.26526, 326.21829

and when they enter the marker, it teleports them to the coordinates 201.84119, 1867.46252, 13.1406 please?

Any help is massively appreciated!:)

Posted
mymarker = createMarker(1548.69153, -1364.26526, 326.21829) 
addEventHandler("onMarkerHit", mymarker, 
function(hitElement, matchingDimension) 
setElementPosition(hitElement, 201.84119, 1867.46252, 13.1406) 
end) 

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...