Morenkashi Posted July 24, 2013 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 )
Castillo Posted July 24, 2013 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 )
Morenkashi Posted July 24, 2013 Author Posted July 24, 2013 yea it works when i set arrow size at 3 i think marker should get lower?
Morenkashi Posted July 24, 2013 Author 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.
Castillo Posted July 24, 2013 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 )
Morenkashi Posted July 24, 2013 Author Posted July 24, 2013 now it's working thanks alot. Edit: i got another problem i can't get out of the interior ...
Castillo Posted July 24, 2013 Posted July 24, 2013 If you don't add an exit marker, then you won't be able to exit, obviously.
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