Inherits TSObject
Description
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.
Properties
- 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.
Actions
- 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.
Triggers
- WIP