Hi,
I have a world created with a grid graph, which has both water and land based units.
The land is tagged as basic ground still, whilst the water is tagged with the second tag, which I have named water
I traverse all the nodes, marking the water squares with the water tag. Land units are only supposed to be on land, so they have their tag set in the seeker to basic ground, whilst the water units set their seeker tags to the water tag.
Unfortunately, both types of units happily go through both types of tagged tile with their paths. To debug I am doing a check with each unit on its tile and they are returning properly the tag, water or land if I check the tag from a getnearest() call. They just seem to be ignoring it completely in the pathing.
I am setting the tags, with guo.modifytag = true and guo.setTag =1 (1 being the water), calling apply and updategraphs thereafter. The getnearest function is definitely seeing the tags I have set as water, I have even put test cubes over each water tagged node, which highlights all my water squares properly.
I have set the seekers for each type of unit to tag=0 and tag=1 respectively in the valid tags setting, so they shouldnt be traversing the other tags.
Is 1 the correct value in the GUO.setTag function for the next tag after Basic Ground?
I am using the pro version, if that makes any difference.
I am totally at a loss as to why the tags are being ignored and been trying this for days now, so any help would be most appreciated!
many thanks!
Jane