- Joined
- Aug 7, 2009
- Messages
- 380
Well, hi
I need you guys again...
I'm making a trigger that create a unit at a position of a unit group i picked, but created units are somehow not at picked units position
Check out my trigger:

Edit: @GangSpear: I copied my trigger and edit it, so there were some mistakes
checked my trigger and it's the same point as "POINTS[1]"
I need you guys again...
I'm making a trigger that create a unit at a position of a unit group i picked, but created units are somehow not at picked units position
Check out my trigger:
-
Trigger 1
-
Events
-
Unit - A unit Starts the effect of an ability
-
-
Conditions
-
(Ability being cast) Equal to Mirror Image
-
-
Actions
-
Set Casters[1] = (Triggering unit)
-
Set POINTS[1] = (Position of Casters[1])
-
Set Integers[1] = (Level of Mirror Image for Casters[1])
-
Set Illusions_Groups[1] = (Units within 500.00 of POINTS[1] matching ((((Matching unit) is A structure) Equal to False) and ((((Matching unit) belongs to an ally of Player 1 (Red)) Equal to False) and (((Matching unit) is Magic Immune) Equal to False))))
-
Unit Group - Pick every unit in Illusions_Groups[1] and do (Actions)
-
Loop - Actions
-
For each (Integer A) from 1 to (Number of units in Illusions_Groups[1]), do (Actions)
-
Loop - Actions
-
Set Effectedunits[(Integer A)] = (Picked unit)
-
Set Points[(Integer A)] = (Position of Effectedunits[(Integer A)])
-
Unit - Create 1 Illusion for (Owner of Casters[1]) at Points[(Integer A)] facing Default building facing degrees
-
Set Illusions[(Integer A)] = (Last created unit)
-
Unit Group - Add Illusions[(Integer A)] to Illusions_Groups[2]
-
Unit - Order Illusions[(Integer A)] to Attack Effectedunits[(Integer A)]
-
Unit - Add a (15.00 + (5.00 x (Real(Integers[1])))) second Generic expiration timer to Illusions[(Integer A)]
-
Animation - Change Illusions[(Integer A)]'s vertex coloring to (100.00%, 100.00%, 100.00%) with 70.00% transparency
-
-
-
-
-

Edit: @GangSpear: I copied my trigger and edit it, so there were some mistakes

Last edited: