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


boolean LT_entity_has_condition(number who,number condition)

numberwho The index of entity that might have the condition
numbercondition The condition to check for

SERVER This has no effect if performed on the client (but will work in single player)

Checks to see if a character entity has a condition. Provide the entity index number for the character to check, not the entity table itself. This will return true if the entity has the condition currently. Provide the condition ID of the condition to check for, you can look those up here.