Looping through neigbours of a province?

Started by Pollyfun, October 31, 2015, 07:41:54 AM

Previous topic - Next topic

Pollyfun

This asset looks great, so I'm evaluating if it contains the features I need for a strategy game I'm working on.

First questions is whether it's possible to loop through neighbours of a region?
Let's say I have selected a unit in Somerset region. Then I want to highlight the regions in
Devon, Dorset, Wiltshire, and Gloucestershire (possibly with green respectively red colors depending on owner).

So basically, input: 1 region, output: a list of neigbours (pointers).

It this supported?

Thanks


Kronnect

Yes, it's supported.

Every Country or Province record has a Region object with a neighbours property which is a list of other regions surrounding it.

The demo scene shows the neighbours names when you move the mouse over any Region.