Jump to content

Get player marker. :|


xScatta

Recommended Posts

Posted

Hey, all guys im confused because there's no such function like

marker = getElementMarker(element)  
-- or 
marker = getPlayerMarker(player) 

Can someone explain how can i get player occupied marker?

Big thanks. xScatta

It's fine to celebrate success but it is more important to heed the lessons of failure.

Posted

you cant get if it is over a marker, you can just know when it hits it.

  
function MarkerHit ( hitPlayer, matchingDimension ) 
if matchingDimension == true then 
if hitPlayer then 
outputChatBox("".. Player .." in now over marker  ".. source.. " !", getRootElement()) 
addEventHandler ( "onClientMarkerHit", getRootElement(), MarkerHit ) 
end 
end 
  

  
function markerLeave ( leavingPlayer, matchingDimension ) 
if matchingDimension == true then 
if leavingPlayer then 
outputChatBox("".. leavingPlayer .." just left marker ".. source .." ! ", getRootElement()) 
end 
end 
addEventHandler ( "onClientMarkerLeave", getRootElement(), markerLeave ) 

If you're sure he is in then you should go ahead with this:

https://wiki.multitheftauto.com/wiki/Is ... thinMarker

My ingame nick is ~HyPeX~

BF3 Gamemode Progress: ~30% - Currently working on AI & MapManager

gKhdyRJ.png

Posted
isElementWithinMarker 
or 
getDistanceBetweenPoints3D 
or 
getElementParent 

If I helped you, please click the like button on the right ;) Thanks!

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