In my current project I build a table of zone names using:
Code:
zoneName = GetZoneNameByIndex(zoneIndex)
zoneId = GetZoneId(zoneIndex)
canJump, result = CanJumpToPlayerInZone(zoneId)
My problem is finding out the maximum value for zoneIndex. At the moment 562 works fine but 563 results in a hang on my system and I have to kill the client process. I know this value changes often so I do not want to hardcode it (562). At the moment the table is recreated every time the module initialises.
I have a similar table for nodes but there I use GetNumFastTravelNodes(). I cannot find anything like this for zones.
Any advice?