Module util
Functionsยง
- aim_
projectile - Projectile motion: Returns the direction to aim for the projectile to reach target position. Does not take any forces but gravity into account.
- are_
our_ owners_ hostile - entities_
have_ line_ of_ sight - entity_
looks_ like_ cultist - get_
attacker - get_
entity_ by_ id - handle_
attack_ aggression - Handles whether an agent should attack and how the agent moves around. Returns whether the agent should attack (so that individual tactics can determine what specific attack to use)
- is_dead
- is_
dead_ or_ invulnerable - is_
dressed_ as_ cultist - is_
invulnerable - is_
steering - is_
village_ guard - is_
villager - positions_
have_ line_ of_ sight - stop_
pursuing - Calculates whether the agent should continue chase or let the target escape.
- try_
owner_ alignment - Gets alignment of owner if alignment given is
Owned
. Returns original alignment if not owned.