smileyguyx
Member
- Reaction score
- 1
I want a trigger so when unit A moves X distance to units B then a spell C is cast
Event
Every 0.50 seconds
Condition
Actions
Set UNITGROUP = Unit within 100.00 of (Position of YourHeroUnit) matching (Matching unit) belongs to an enemy of Owner of (YourHeroUnit)... etc
If then else
Condition
Number of units in UNITGROUP Greater than 0 <-- [I]Integer Comparison[/I]
Then - Actions
Set UNITVARIABLE = Random unit in UNITGROUP
Unit - Order YourHeroUnit do something to UNITVARIABLE
Else - Actions