ibootleeg Posted March 19, 2014 Posted March 19, 2014 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)
ibootleeg Posted March 20, 2014 Author Posted March 20, 2014 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
Dzsozi (h03) Posted March 20, 2014 Posted March 20, 2014 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 setElementInterior(exitMarker, 3) Put this in a new line after exitMarker = createMarker(...)
DNL291 Posted March 20, 2014 Posted March 20, 2014 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)
ibootleeg Posted March 20, 2014 Author Posted March 20, 2014 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
ibootleeg Posted March 20, 2014 Author Posted March 20, 2014 Try making the whole script server side. Yeah ! Worked perfectly, used the events as studied in the wiki and turned it into server mode as you said, thank you very much !
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