1. Home
  2. Docs
  3. TetraScript
  4. Objects
  5. Entity


Inherits TSObject



Base class for enemies and players. Includes logic for health, combat, movement patterns, and anything else needed to make an object that reacts to its environment.



  • Health amount = 0.5
    • Amount of hearts.
  • Speed amount = 40
    • How fast the entity moves.
  • Damage amount = 0
    • Contact damage of entity. Set to 0 for none.



  • use_weapon(weapon):
    • WIP
Movement Patterns
  • wander(length):
    • Walks in a random direction for ‘length’ seconds. Chooses a new direction when time is up. If in contact with a wall, the entity will start walking in the opposite direction without resetting the timer.



  • WIP
Was this article helpful to you? Yes No

How can we help?