Jump to content

[HELP]Marker don't appear


ibootleeg

Recommended Posts

Hello, the title says it all, so my problem is:

I created an interior and created two markers, one for entering and

other to exit, the marker entry appears, but when I enter

into the interior, the marker that I created to return to the outside, does not appear!

SS Outside:

http://i.imgur.com/9UOB2Fn.png

SS Inside:

http://i.imgur.com/q64eVpL.png

(The pictures are great for this reason the link's)

And to complete here is the code with the coordinates x, y, z :

  
enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
  
exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 
  

Link to comment

LOL ! Just see te code, this is not my problem, my problem is, when i enter on the interior, the marker of exit don't appear ! =c

You must to define the interior of the marker.

  
local enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
local exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
setElementInterior(exitMarker, 3) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 

Link to comment

You must to define the interior of the marker.

  
local enterMarker = createMarker(1481.139, -1771.914, 19.5, "arrow", 1.5, 0, 255, 255, 0) 
local exitMarker = createMarker(389.76, 173.768, 1008.383, "cylinder", 1.5, 0, 255, 255, 0) 
setElementInterior(exitMarker, 3) 
  
function markerEnter(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 3, 384.705, 173.77, 1008.383) 
    end 
end 
addEventHandler ("onClientMarkerHit", enterMarker, markerEnter) 
  
function markerExit(hitPlayer) 
    if(hitPlayer == localPlayer) then 
        setElementInterior (getLocalPlayer(), 0, 1481.262, -1768.324, 18.796) 
    end 
end 
addEventHandler ("onClientMarkerHit", exitMarker, markerExit) 

Thanks, now it works, but i have another problem ):

when I go to my friend, works perfectly, but I do not see him inside her, he becomes invisible.

SS

http://i.imgur.com/FzAMMMt.png

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