Jump to content

[HELP] SetElementInterior


Recommended Posts

local myMarker = createMarker(-1828.77515, 18.73340, 16.59393, 'arrow', 2.0, 255, 0, 0, 150) 
function craftenter() 
setElementInterior ( myMarker, 3) 
end 
addEventHandler("onMarkerHit", myMarker, craftenter) 

Hello, I've been trying to make this simple script but when I try to enter the marker, the marker disappears. Someone help me please.

Link to comment

EDIT:

oh now i get it, you're basically teleporting your marker into the interior ID # 3 :?

i thought you wanted the marker to disappear when you hit on the marker. anyways here.

try this:

function craftenter( hitElement, matchingDimension ) 
    setElementInterior(hitElement, 3) 
end 
addEventHandler( "onMarkerHit", myMarker, craftenter) 

if you want to put him to a certain position in the interior use this:

setElementInterior ( hitElement, 3, x, y, z ) 

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