Jump to content

Marker.


davedavy

Recommended Posts

Posted

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?

Posted

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.

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

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