Jump to content

Moving Markers


devil666

Recommended Posts

i want to know how to move a marker but i can't get it and i have tryed like 500 different way and none of them worked...

but here is what i have so far!

enter9 = createMarker ( -1148.4782, 345.7957, 13.6835, "cylinder", 30, 125, 0, 0, 155, getRootElement() )

function MarkerHit9 ( hitPlayer, matchingDimension )

username = getClientName ( hitPlayer )

outputChatBox ( username .. " Has Won The Race!" )

moveObject ( enter9, 2000, -1148.4782, 345.7957, 0 )

end

addEventHandler("onMarkerHit", enter9, MarkerHit9)

Link to comment

If you want to move the marker "smoothly", try finding an invisible or very small object, attaching the marker to it, THEN using moveObject. A marker isn't an object, and setElementPosition will "snap" it to the new coords instantaneously.

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