The difficulty was to find the right wall. And remove only those under the hedge:



This will remove all wall types (except the corners.)
The wall must be positioned under the hedge. But the script tolerate a slight variation for the position.
Moderators: Slitherine Core, BA Moderators



































As already mentionned, the GetUnitFacing() return the unit facing angle but returned values are not always the same for the same unit's orientation (0 or 16 for example)GottaLove88s wrote:I think this may be a problem of "direction facing"... Experimenting more, I'm realising that sometimes the option to demolish the hedgerow doesn't come show, when I'm facing the hedgerow... BUT if I try facing in different directions, the option will eventually show... Sometimes when I face the same direction when it didn't show before... Am not sure why?



Hmm I see.GottaLove88s wrote: ...
So the Hedgerow code works nicely with two bugs that I can't figure out...
(i) why can't it "see" the hedgerow/wall combi around the airfield?
(ii) how to limit the action so that it only works between the selected unit and the yellow target cursor
Hmmm?

This is my plan.GottaLove88s wrote:Uh oh... Ahhhh, that makes sense... Would it be easier to avoid GetUnitFacing altogether?
Could we demolish any hedgerow between the selected engineer and the yellow target cursor, irrespective of which way the unit is facing?