Jooster
New Member
- Reaction score
- 7
so im running into a problem with setting units into a temp_unitgroup, i tried setting it to (reference below) Is Equal to True and it wasn't working. i changed it to what it is in the code and now it will work about once or twice even if the a unit stays within 500 of that point
Set unit_group = (Units within 500.00 of point matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Is Equal to True)
here's my code
Set unit_group = (Units within 500.00 of point matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Is Equal to True)
here's my code
Code:
Lighting Overload
Events
Time - Every 0.50 seconds of game time
Conditions
Actions
Set point = (Position of (Random unit from (Units of type Lighting Elemental)))
Set unit_group = (Units within 500.00 of point matching (((Matching unit) belongs to an enemy of (Owner of (Casting unit))) Not equal to False))
Unit Group - Pick every unit in unit_group and do (Actions)
Loop - Actions
Unit - Create 1 cinemaic dummy for (Owner of (Triggering unit)) at point facing Default building facing (270.0) degrees
Unit - Add Chain Lightning (Neutral Hostile) to (Last created unit)
Unit - Set level of Chain Lightning (Neutral Hostile) for (Last created unit) to 1
Unit - Order (Last created unit) to Orc Far Seer - Chain Lightning (Picked unit)
Unit - Add a 1.50 second Generic expiration timer to (Last created unit)
Custom script: call DestroyGroup (udg_unit_group)
Custom script: call RemoveLocation (udg_point)