
Im stuck trying to figure out a good way to make walls but i have a few ideas if anyone could point me in the right direction.
Heres what im thinking: I make the walls a unit not a feature and set it as a bad target category for everything so it wont effect a firefight if theres actual units to attack there and so ai will attack walls. this is so i can give the unit a script and so walls are repairable and can be sold.
That said in the unit script i want it to check for other walls in either north, east, south and west and show/rotate or hide a piece so each will look connected the other wall piece should also recheck if it needs to update its self. walls will be one square tile.
So does anyone know a piece of magic code that can check one tile in all four directions for a unit?
Also another question

and last question i have a helicopter in my game but i have a problem with units attacking the helicopter. i have anti air sam sites that fire at it as its flies with is good but if i was to land near the sam they continue to shoot at it and also ive set tanks not to shoot at aircraft so they just smile at the landed helicopter. i believe if i could change the category to LAND when landed and FLY when flying at runtime i could get what i want but i got a feeling im not so lucky on this one.
And thats all for now
