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.