There are only 4 lines But yeah, I added it underneath and it still doesn't workI don't need the #fence bit do I?
I don't need the #fence bit do I?
#box off spinner self.AddCollisionLine((2, 2), (2, -2)) self.AddCollisionLine((2, -2), (-2, -2)) self.AddCollisionLine((-2, -2), (-2, 2)) self.AddCollisionLine((-2, 2), (2, 2)) #fence self.AddCollisionLine((-10, 12), (10, 12)) self.AddCollisionLine((10, 12), (12, 10)) self.AddCollisionLine((12, 10), (12, -10)) self.AddCollisionLine((12, -10), (10, -12)) self.AddCollisionLine((10, -12), (-10, -12)) self.AddCollisionLine((-10, -12), (-12, -10)) self.AddCollisionLine((-12, -10), (-12, 10)) self.AddCollisionLine((-12, 10), (-10, 12)) #spinner ai guide self.AddPOV(0, (5, 5), (0, 1)) self.AddPOV(1, (5, -5), (1, 2)) self.AddPOV(2, (-5, -5), (2, 3)) self.AddPOV(3, (-5, 5), (3, 0)) self.AddPOV(0, (5, 5), (0, 3)) self.AddPOV(1, (5, -5), (1, 0)) self.AddPOV(2, (-5, -5), (2, 1)) self.AddPOV(3, (-5, 5), (3, 2))
#self.AddCollisionLine(XZ-StartingLocations,XZ-EndingLocation) - the line between the two points acts as an "obstacle" to the AI that they will try not to cross.#self.AddPOV(POV_ID,X-Coordinate,Z-Coordinate,POV_ID) - the first value represents the ID of this POV, the second and third values determine the location of this POV, and the fourth value is the ID number of the POV that this POV connects to. Basically you string them together with that second ID to make a path that the AI will follow to get around obstacles.
A while back, I fixed that arena so that it didn't cause any errors (IIRC there were two problems). As for the AI issues, I've been meaning to fix them but never got around to it. You may need to include both POVs (to prevent the AI from following their opponent over the edge) and collision lines (to get the AI to stay away from the edge). They formatting looks like this:Code: [Select]#self.AddCollisionLine(XZ-StartingLocations,XZ-EndingLocation) - the line between the two points acts as an "obstacle" to the AI that they will try not to cross.#self.AddPOV(POV_ID,X-Coordinate,Z-Coordinate,POV_ID) - the first value represents the ID of this POV, the second and third values determine the location of this POV, and the fourth value is the ID number of the POV that this POV connects to. Basically you string them together with that second ID to make a path that the AI will follow to get around obstacles.
Have you messed about with the python before? mine looks like this..Code: [Select]#box off spinner self.AddCollisionLine((2, 2), (2, -2)) self.AddCollisionLine((2, -2), (-2, -2)) self.AddCollisionLine((-2, -2), (-2, 2)) self.AddCollisionLine((-2, 2), (2, 2)) #fence self.AddCollisionLine((-10, 12), (10, 12)) self.AddCollisionLine((10, 12), (12, 10)) self.AddCollisionLine((12, 10), (12, -10)) self.AddCollisionLine((12, -10), (10, -12)) self.AddCollisionLine((10, -12), (-10, -12)) self.AddCollisionLine((-10, -12), (-12, -10)) self.AddCollisionLine((-12, -10), (-12, 10)) self.AddCollisionLine((-12, 10), (-10, 12)) #spinner ai guide self.AddPOV(0, (5, 5), (0, 1)) self.AddPOV(1, (5, -5), (1, 2)) self.AddPOV(2, (-5, -5), (2, 3)) self.AddPOV(3, (-5, 5), (3, 0)) self.AddPOV(0, (5, 5), (0, 3)) self.AddPOV(1, (5, -5), (1, 0)) self.AddPOV(2, (-5, -5), (2, 1)) self.AddPOV(3, (-5, 5), (3, 2))