devil666 Posted March 17, 2009 Share Posted March 17, 2009 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
heavy air Posted March 17, 2009 Share Posted March 17, 2009 i think u might need to use setElementPosition to move the marker but im not sure if u search for setElementPosition on the wiki it might help tell u if this is what u need Link to comment
robhol Posted March 17, 2009 Share Posted March 17, 2009 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
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