1. Animals
  2. Abilities
  3. Conditions
  4. Tool/Weapon
  5. Weapon Mods
  6. Orb
  7. Equipped
  8. Food/Medicine
  9. Furniture/Construction
  10. Color/Pattern
  11. Items
  12. Attributes
  13. Creatures
  14. Blocks
  15. Props
  16. API Types
  17. 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.