Module veloren_rtsim::rule::npc_ai
source ยท Structsยง
- DefaultState ๐
Constantsยง
- CARDINALS ๐
- SIMULATED_TICK_SKIP ๐How many ticks should pass between running NPC AI. Note that this only applies to simulated NPCs: loaded NPCs have their AI code run every tick. This means that AI code should be broadly DT-independent.
- WALKING_SPEED ๐
Functionsยง
- adventure ๐
- bird_large ๐
- captain ๐
- check_for_enemies ๐
- check_inbox ๐
- choose_plaza ๐
- find_farm ๐
- find_forest ๐
- gather_ingredients ๐
- goto ๐Try to walk toward a 3D position without caring for obstacles.
- goto_2d ๐Try to walk toward a 2D position on the surface without caring for obstacles.
- goto_2d_flying ๐Try to fly toward a 2D position following the terrain altitude at an offset without caring for obstacles.
- goto_flying ๐Try to walk fly a 3D position following the terrain altitude at an offset without caring for obstacles.
- humanoid ๐
- hunt_animals ๐
- idle ๐
- monster ๐
- path_between_sites ๐
- path_between_towns ๐
- path_in_site ๐
- path_site ๐
- pilot ๐
- react_to_events ๐
- socialize ๐
- talk_to ๐
- think ๐
- travel_to_point ๐Try to travel to a site. Where practical, paths will be taken.
- travel_to_site ๐Try to travel to a site. Where practical, paths will be taken.
- traverse_points ๐
- villager ๐