Passer au contenu principal
Version: latest - a1.70.x ⚖️

Intelligence artificielle

Comment l'IA fonctionne dans nanos world

attention

🚧 Cette page est en cours de rédaction.

Every Character or CharacterSimple spawned without a Player possessing it will automatically be possessed by an AI Controller. Which means you can use Character methods such as :MoveTo() and :LookAt().

In nanos world, AI as well as Physics are things distributed through Clients to be calculated and shared with the other Players (please refer to Network Authority), which means the AI will only work if there is a Player connected to the server.

info

If you input a NPC to :IsValid() somewhere and there is no Player connected, he will only start walking once a Player joins the server.

Mesh de navigation

Afin que les PNJs puissent trouver le chemin à parcourir, la map doit avoir un NavMesh configuré.