milkshake333 Posted January 6, 2011 Share Posted January 6, 2011 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
milkshake333 Posted January 6, 2011 Author Share Posted January 6, 2011 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
Aibo Posted January 6, 2011 Share Posted January 6, 2011 i hope you create windowMarkerHit function before addEventHandler, not after? because markers in interiors work just fine. Link to comment
milkshake333 Posted January 6, 2011 Author Share Posted January 6, 2011 I did that, but still not working.... EDIT: Well I found out they're just too smal.. Weird ... Well it's fixed so /care Link to comment
Kazafka Posted January 1, 2020 Share Posted January 1, 2020 Having same problem, marker won't appear. And even if I will make onMarkerHit event connected to a function, It still doesn't detects, if I hit the marker. Any help? Link to comment
Kazafka Posted January 2, 2020 Share Posted January 2, 2020 14 hours ago, VaporZ said: Having same problem, marker won't appear. And even if I will make onMarkerHit event connected to a function, It still doesn't detects, if I hit the marker. Any help? I'd said nothing ok? My problem's gone! 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