RangeR.. Posted May 23, 2016 Share Posted May 23, 2016 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
mint3d Posted May 23, 2016 Share Posted May 23, 2016 setElementInterior ( myMarker, 3) You realise that you're using myMarker as a Element, which basically setting the marker into interior 3 onMarkerHit Link to comment
Bean666 Posted May 23, 2016 Share Posted May 23, 2016 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
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