|
Post by Bradley S on Nov 7, 2015 18:54:33 GMT
Hi, I want to make all mountains/tree impassible so that creatures may not walk over them. How do I find whether or not a hex is a mountain/has trees on it?
|
|
|
Post by kramar on Nov 9, 2015 15:00:14 GMT
I use Hex.terrainType
for example
if (hex.terrainType.source.seaType) {
DoSomething();
}
|
|
|
Post by Bradley S on Nov 11, 2015 21:38:12 GMT
Yeah, I tried that but for some reason (maybe due to using the map editor?) the type either wasn't set or the type was set incorrectly by the program. I ended up just checking the texture name as well as if the foreground data had trees in it.
|
|