davedavy Posted November 18, 2011 Share Posted November 18, 2011 I created a script so people can join a interior when then join the marker, but the maker wont appear. Code: marker = createMarker (2392.6950683594, 2043.826171875, 10.8203125, 'cylinder', 1.0, 255, 255, 255, 255) setElementInterior(marker, 9) What's wrong? Link to comment
Aibo Posted November 18, 2011 Share Posted November 18, 2011 it doesnt work that way, you'll have to use events for that. right now you're placing your marker in interior 9, that's why it's not showing. Link to comment
davedavy Posted November 18, 2011 Author Share Posted November 18, 2011 Interior 9 needs to be the target Link to comment
JR10 Posted November 18, 2011 Share Posted November 18, 2011 local marker = createMarker ( 2392.6950683594, 2043.826171875, 10.8203125, 'cylinder', 1.0, 255, 255, 255, 255 ) addEventHandler ( "onMarkerHit" , marker , function(hElement,matchingDim) if not matchingDim then return end if getElementType ( hElement ) ~= "player" then return end --setElementPosition ( hElement, posX , posY , posZ ) setElementInterior ( hElement , 9 ) end) Replace posX , posY , posZ with the position you want the player to be teleported to, and uncomment it. 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