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_get

entity LT_entity_get(number index)

numberindex The index of the entity to get

Gets an arbitrary entity from a numerical index. All of the current game's entities are indexed from 0 to one less than the total number of entities. A particular index may not always refer to the same entity and could change rapidly. It is only safe to use an index within the same frame.