Is there a way to change the sight range of a unit back and forth?
I'm working on an ability that reduces the sight range of a unit for a few seconds. Players only own 1 unit in my map so it can be a player based upgrade but I'm not sure if it's possible to decrease the upgrade level in some way. Because this ability should be able to be used a few times in a map, and not be a one-time use ability only.
Things I think about are:
1) Making an upgrade with very much levels. Every odd level is reduced sight range and every other level is the normal sight range so it switches back and forth (until the upgrade ran out of levels)
2) Reducing the sight range of all units to 0 and creating a dummy unit that gets positioned on them with a timer. This dummy unit has the sight range that's required and this dummy unit will get replaced as soon as the sight range increases/decreases.
But is there any easier option? (JASS, GUI, whatever)
I'm working on an ability that reduces the sight range of a unit for a few seconds. Players only own 1 unit in my map so it can be a player based upgrade but I'm not sure if it's possible to decrease the upgrade level in some way. Because this ability should be able to be used a few times in a map, and not be a one-time use ability only.
Things I think about are:
1) Making an upgrade with very much levels. Every odd level is reduced sight range and every other level is the normal sight range so it switches back and forth (until the upgrade ran out of levels)
2) Reducing the sight range of all units to 0 and creating a dummy unit that gets positioned on them with a timer. This dummy unit has the sight range that's required and this dummy unit will get replaced as soon as the sight range increases/decreases.
But is there any easier option? (JASS, GUI, whatever)