If I thought about it I could probably come up with a better solution, but you could change the enemy acquire limit to a much lower number, say, less than the cliff.
However, this would mean that the cliff would need to be really thick and the unit couldn't have a large range. Sorry, I just didn't really feel like thinking but I wanted to try and help.
Something to do with heights.... Let me think.......
What about a trigger that has the event of "any unit aquires target" or something. Here is where it gets interesting. There has to be a way of detecting the height of the units that would do the attacking, checking to see if the unit being attacked is heigher than it, and shutting off the attack. The catch is that as long as a unit is on the ground height conditions won't really work as the unit's height relative to the ground is still zero (if I am wrong on this, forgive me). I hope that little rant got you thinking at the least.
O crap you meant across gaps, jeez I'm an idiot. In that case, lemme think again....
Option one:
make all gaps really wide (wider than any unit's range) and don't include siege tanks or colossus in the map.
I already have a trigger in place to do this but it's not really efficient that's why i'm looking to see if there's a way to do it without triggers. Or at least with much simpler triggers.
Try just giving the ammo unit a mover that cannot go over cliffs. An alternative would be to use a chain of periodic effects that use the Location Compare Cliff Level validator which then result in the attack being launched if all the validators in the chain come back true.
And then there is the good old Location Cross Cliff validator which determines if the target is across a cliff.
If Fog of War was turned OFF(meaning everyone can see everything), is there anyway to prevent ranged units from firing across cliffs?
If I thought about it I could probably come up with a better solution, but you could change the enemy acquire limit to a much lower number, say, less than the cliff.
However, this would mean that the cliff would need to be really thick and the unit couldn't have a large range. Sorry, I just didn't really feel like thinking but I wanted to try and help.
Have a good day and stuff
Great to be back and part of the community again!
Something to do with heights.... Let me think.......
What about a trigger that has the event of "any unit aquires target" or something. Here is where it gets interesting. There has to be a way of detecting the height of the units that would do the attacking, checking to see if the unit being attacked is heigher than it, and shutting off the attack. The catch is that as long as a unit is on the ground height conditions won't really work as the unit's height relative to the ground is still zero (if I am wrong on this, forgive me). I hope that little rant got you thinking at the least.
O crap you meant across gaps, jeez I'm an idiot. In that case, lemme think again....
Option one:
make all gaps really wide (wider than any unit's range) and don't include siege tanks or colossus in the map.
Option two:
My mind fails me, is there an option two???
I already have a trigger in place to do this but it's not really efficient that's why i'm looking to see if there's a way to do it without triggers. Or at least with much simpler triggers.
Try just giving the ammo unit a mover that cannot go over cliffs. An alternative would be to use a chain of periodic effects that use the Location Compare Cliff Level validator which then result in the attack being launched if all the validators in the chain come back true.
And then there is the good old Location Cross Cliff validator which determines if the target is across a cliff.
Contribute to the wiki (Wiki button at top of page) Considered easy altering of the unit textures?
https://www.sc2mapster.com/forums/resources/tutorials/179654-data-actor-events-message-texture-select-by-id
https://media.forgecdn.net/attachments/187/40/Screenshot2011-04-17_09_16_21.jpg