Sign in to follow this  
davedavy

Marker.

Recommended Posts

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?

Share this post


Link to post

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.

Share this post


Link to post
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.

Share this post


Link to post

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.