1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Equipped
  6. Food/Medicine
  7. Items
  8. Attributes
  9. Creatures
  10. Blocks
  11. Props
  12. API Types
  13. API Functions

LT_entity_closest

entity LT_entity_closest(number w,number x,number y,number z)

numberw The world ID to look for entities in
numberx X coordinate of location
numbery Y coordinate of location
numberz Z coordinate of location

Gets the entity closest to the location given. Searches in the specified world for the entity closest to the location given. This function will ignore the current player's entity. If there's no entities in the world, a null will be returned.