Hi there! I am trying to figure out how to get a certain index from a path list of nodes. Say the path is 20 nodes but the enemy AI can only move 5 nodes in one turn. I am trying to figure out how to get the 5th index of the path list.
I tried IndexOf but it says cannot convert int to mapnavkit.mapnavnode.
//pseudo code, path exists from the enemy to the player
public moveableNode MapNavNode;
moveableNode = path.IndexOf(path); // it doesn’t like this part and I am stumped 0_o
I know I am probably way off but any help would be a huge boost for me, thank you Leslie!