Quote: "a) Can you tell if an enemy unit can see a player's character/unit (could be 3-4 of them in total). Of course the units may only be 5ft apart but if there's a wall in the way they can't see each other etc!"
There is an AI GET ENTITY CAN SEE command where you can check the line of sight between the enemy and player for obstacles.
Quote: "b) Building on (a), can you infact do a call to see if a specific unit can see another specific unit, beit player or computer controlled?"
You can do this on a per enemy basis checking each one at a time, and check between two enemies.
Quote: "c) Given I've decided an enemy unit can see a players unit, can I then work out the path to that position? And how long that path is? (If it's too long I wouldn't bother following it)."
Yes, there is an AI MAKE PATH BETWEEN POINTS command where you can create a path between two points (the enemy and player positions or any other chosen locations) which will avoid any obstacles in the way. You have access to all the points in the path once it is created so you could cycle through them and calculate the length.
Quote: "d) Can you work out a path taking other units into consideration or not? ie: Can you have a function work out a route avoiding all other units, and ignoring all other units that are in the way?
e) Infact, building on (d) can you just work out a path from pos A to pos B, with or without considering other units being obsticals?"
No, an enemy automatically avoids other entities when it encounters them so this information is not included in the path. The path will take obstacles into consideration.
Quote: "f) In simple terms, when you've worked out a path, how is that usable? ie: When I've written path finding algorithms it simply provides a stack of X/Y coordinates to move along. With Dark AI, is this similar, or is it all hidden from you and all you can do it tell a unit to follow a path or not? I do hope not!"
You have access to all the points on a path using the AI PATH COUNT POINTS, AI PATH GET POINT X and AI PATH GET POINT Z. You can also make an entity patrol this path with a single command if you wanted with AI ENTITY ASSIGN PATROL PATH.