Jump to content

Need help


Recommended Posts

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

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

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

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