About mid-January, I created a Script that would act as a Node representation of the access a Room has to its neighbors.
After a while of work on it I came to the adjacent visible Script, holding the appropriate fields H, G and F costs for a* Pathfinding as well as a Parent reference.
The "Nei Connections" are of course the 4 direction connections for the Room, this is a corner and thus has only two.
Dir To Pat, and Go are my own creations to save time by not having to re-perform pathfinding if a room a zombie is in, has just had pathfinding run and found a path.
After a while of work on it I came to the adjacent visible Script, holding the appropriate fields H, G and F costs for a* Pathfinding as well as a Parent reference.
The "Nei Connections" are of course the 4 direction connections for the Room, this is a corner and thus has only two.
Dir To Pat, and Go are my own creations to save time by not having to re-perform pathfinding if a room a zombie is in, has just had pathfinding run and found a path.