I've recently tried to work with a new integer function that checks for terrain pathebility. Can someone explain to me how this trigger works because i've treid to used it to detect if my unit was in shallow water (amphibious terrain) and the thing crashed.
I tried that once but it said there was error in the script and it also considered the function a boolen even though it was an integer comparison. I dunno but i'll try setting it to 0 (perhaps that will work)
[edit] nope that doesn't work but i've found the problem. I'm 99% sure this was the map editor creator's fault because this is suppose to be a boolean but it's treated in GUI as an integer. All i had to do was change it to custom text and set it to true/false to make it work properly
Here's what i ended up with and it works perfectly