Morenkashi Posted July 24, 2013 Share Posted July 24, 2013 Guys i'm new in scripting i just started yesterday , i need help ... i made a marker that teleports me to LS Gym when i go to the marker nothing happen, please i need help really fast , here is my code : Marker = createMarker(1060.0223388672,1237.9868164063,12.827476501465, 'arrow', 2, 0, 0, 255, 255) function Teleport(player) setElementInterior(5,772.36291503906,-4.5911450386047,1000.7290649414) end addEventHandler( "onMarkerHit", Marker, Teleport ) Link to comment
Castillo Posted July 24, 2013 Share Posted July 24, 2013 That's because you forgot to fill the element at setElementInterior. Marker = createMarker ( 1060.0223388672, 1237.9868164063, 12.827476501465, 'arrow', 2, 0, 0, 255, 255 ) function Teleport ( player ) setElementInterior ( player, 5, 772.36291503906, -4.5911450386047, 1000.7290649414 ) end addEventHandler ( "onMarkerHit", Marker, Teleport ) Link to comment
Castillo Posted July 24, 2013 Share Posted July 24, 2013 It works here, post your meta.xml content. Link to comment
Morenkashi Posted July 24, 2013 Author Share Posted July 24, 2013 yea it works when i set arrow size at 3 i think marker should get lower? Link to comment
Morenkashi Posted July 24, 2013 Author Share Posted July 24, 2013 i tried but failed so how can i do it ? , sorry for bothering but i started scripting yesterday so i don't know much about scripting sorry. Link to comment
Castillo Posted July 24, 2013 Share Posted July 24, 2013 You must lower the Z position, here: Marker = createMarker ( 1060.0223388672, 1237.9868164063, 12.827476501465, 'arrow', 2, 0, 0, 255, 255 ) This is the Z position: 12.827476501465 You can try setting it to 11.82. Marker = createMarker ( 1060.0223388672, 1237.9868164063, 11.82, 'arrow', 2, 0, 0, 255, 255 ) Link to comment
Morenkashi Posted July 24, 2013 Author Share Posted July 24, 2013 now it's working thanks alot. Edit: i got another problem i can't get out of the interior ... Link to comment
Castillo Posted July 24, 2013 Share Posted July 24, 2013 If you don't add an exit marker, then you won't be able to exit, obviously. Link to comment
Morenkashi Posted July 24, 2013 Author Share Posted July 24, 2013 oh k thanks for help. 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