San-D
New Member
- Reaction score
- 15
I have a little problem the following trigger is not working:
It creates the dummies, but it doesnt move those who are from 270 to 90 degrees of the caster!
Code:
Begin
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to Forst Gift
Actions
Set Caster = (Casting unit)
Destructible - Pick every destructible in (Region centered at (Position of (Casting unit)) with size (3500.00, 3500.00)) and do (Actions)
Loop - Actions
Set Destructable = (Picked destructible)
Unit - Create 1 Forest Dummy for (Owner of (Casting unit)) at (Position of Destructable) facing Default building facing degrees
Set Spirit270to90 = (Units within 4000.00 of (Position of Caster) matching (((Unit-type of (Matching unit)) Equal to Forest Dummy) and (((Angle from (Position of Caster) to (Position of (Matching unit))) Greater than 270.00) and ((Angle from (Position of Caster) to (Position of
Unit Group - Order Spirit270to90 to Move To (Position of Caster)
It creates the dummies, but it doesnt move those who are from 270 to 90 degrees of the caster!