Jump to content

[HELP] Creating a marker inside an interior


Recommended Posts

Well I tried creating a marker via script, and it should be in the interior, I got the coordinates correctly. It's Jizzy's interior, so interior ID 3. But, the syntax stuff is correctly, my markers outside work, but in the interior they don't....

Marker code:

  
stripMarks["guard1"] = createMarker(-2639.7431640625,1404.02734375,906.4609375,"cylinder", 2, 0, 255, 0, 255, 
getRootElement()) 
  

I tried it with setElementInterior(marker, 3). Also setElementInterior(marker, 3, x, y, z), but no success at all.

Please help me out :).

Link to comment

Well I ran into another problem, the onMarkerHit event doesn't work.

The marker:

  
window = createMarker(-2634.2802734375,1407.00390625,905.4609375, "cylinder", 1, 0, 255, 0, 255, getRootElement()) 
addEventHandler("onMarkerHit", window, windowMarkerHit) 
setElementInterior(window, 3) 
  

The event function:

  
function windowMarkerHit(element, dimension) 
    outputChatBox("WINDOW MARKER HIT!") 
    outputChatBox("The element was " .. getPlayerName(element)) 
    outputChatBox("Source: " .. tostring(source)) 
end 
  

P.S. The messages are just for testing purposes.

Btw, sorry for double post, but I thought I figured it out, but now I got this problem.

Please help meh :)

Greetings,

Rutger Speksnijder.

Link to comment
  • 8 years later...

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