Is there anyone out here that could tell me what's the best way to create a system that does the following:
Every time a unit, (that matches some conditions like Unit Type checking, checking if its alive), enters a given rect it will change the unit's visibility to something like 50% for 11 seconds every 0.25 seconds.
In addition this system should also run at the start of the game. So it has to activate at map init and whenever a unit that matches the conditions enters the rect(s).
(This is the action that has to occur every interval: call SetUnitVertexColor(unit, 255, 255, 255, 100))
In the system I want to be able to assign specific unit types to specific rects. So per example, in Rect A, only unit Type 'u001' should have this effect while in Rect B only unit Type 'u002' should get this.
I don't really know what's the best way to get started.
Is there anyone that could help me out here?
Every time a unit, (that matches some conditions like Unit Type checking, checking if its alive), enters a given rect it will change the unit's visibility to something like 50% for 11 seconds every 0.25 seconds.
In addition this system should also run at the start of the game. So it has to activate at map init and whenever a unit that matches the conditions enters the rect(s).
(This is the action that has to occur every interval: call SetUnitVertexColor(unit, 255, 255, 255, 100))
In the system I want to be able to assign specific unit types to specific rects. So per example, in Rect A, only unit Type 'u001' should have this effect while in Rect B only unit Type 'u002' should get this.
I don't really know what's the best way to get started.
Is there anyone that could help me out here?