ENGINE:Tab-Key(Down)TargetEventsLocalVariablesConditionsActionsVariable-SetENGINE:Target(Record).Target=(Closestunitto(PositionofENGINE:Hero(Record).Hero)inENGINE:Target(Record).CurrentTargets)General-If(Conditions)thendo(Actions)elsedo(Actions)If(ENGINE:Target(Record).Targetisvisibletoplayer1)!=TrueThenUnitGroup-AddENGINE:Target(Record).TargettoENGINE:Target(Record).CycledTargetsVariable-SetENGINE:Target(Record).Target=NoUnitTrigger-RunENGINE:Tab-Key(Down)Cycle(IgnoreConditions,Don't Wait until it finishes) Else Unit - Add 1 [ENGINE] Target to ENGINE: Target (Record).Target from player 1 Trigger - Run ENGINE: Target (Update) (Ignore Conditions, Don'tWaituntilitfinishes)ENGINE:Tab-Key(Down)TargetEventsLocalVariablesConditionsActionsVariable-SetENGINE:Target(Record).Target=(Closestunitto(PositionofENGINE:Hero(Record).Hero)inENGINE:Target(Record).CurrentTargets)General-If(Conditions)thendo(Actions)elsedo(Actions)If(ENGINE:Target(Record).Targetisvisibletoplayer1)!=TrueThenUnitGroup-AddENGINE:Target(Record).TargettoENGINE:Target(Record).CycledTargetsVariable-SetENGINE:Target(Record).Target=NoUnitTrigger-RunENGINE:Tab-Key(Down)Cycle(IgnoreConditions,Don't Wait until it finishes) Else Unit - Add 1 [ENGINE] Target to ENGINE: Target (Record).Target from player 1 Trigger - Run ENGINE: Target (Update) (Ignore Conditions, Don'tWaituntilitfinishes)
Note
Unit - Add 1 [ENGINE] Target to ENGINE: Target (Record).Target from player 1
This line applies a Behavior "Target" to the target unit. I use the Behavior to create an Actor at the target Unit. The Actor and Model are the red targeting reticle [Art: Model Briefing Unit Select (Red, Medium)]
Unless you're going to post custom script of this in its entirety or upload a library, I suggest you move this to the Tutorials section, since that's what it seems to be...
Tab Targeting (Cycle)
This is a tab targeting trigger set. This tab targeting cycle operates like WoW targeting system (cycling through available targets with the tab key).
Terraining
Region: Targeting
You'll need to create a Region (Targeting Region). Then attach this Targeting Region to your Unit. I used a circular region with radius 12.
Triggers
Variables (Mine are in a record called Engine: Target).
You'll need 1 Unit variable, and 3 Unit Group variables.
TARGET Target = No Unit <Unit>
Triggers
Note
This line applies a Behavior "Target" to the target unit. I use the Behavior to create an Actor at the target Unit. The Actor and Model are the red targeting reticle [Art: Model Briefing Unit Select (Red, Medium)]
@XLIIVI: Go
How do I preserve the Trigger Text format?
use code /code with "<<" and ">>" surrounding the two.
use code /code with "<<" and ">>" surrounding the two.
use code /code with "<<" and ">>" surrounding the two.
Unless you're going to post custom script of this in its entirety or upload a library, I suggest you move this to the Tutorials section, since that's what it seems to be...