Jump to content

flomix77

Members
  • Posts

    4
  • Joined

  • Last visited

Everything posted by flomix77

  1. I need detect the distance between the player and ped if the player is 5.0 meters of distance of the ped, the ped kill be make an action... sorry for my bad english.. but someone knows how to detect the distance everytime?
  2. Thanks but now i have another question, i have this code: function check3DDistance(leader) local pX, pZ, pY = getElementPosition( leader ) local bX, bZ, bY = getElementPosition( source ) local distancia = getDistanceBetweenPoints3D ( pX, pZ, pY, bX, bZ, bY ) outputChatBox ( "the distance between "..getPlayerName(leader).." and the zombie is of "..tonumber(distancia)) end addEventHandler("onBotFollow", getRootElement(), check3DDistance) but dont works.. what "callback" i can use to check the distance when the ped is moving..?
  3. Hello i have a problem with my script.. i need help to get if a player is near a ped.. or conversely.. someone can help me? Thank you
×
×
  • Create New...