Multiply Lightnings

FroznYoghurt

New Member
Reaction score
37
Im tinkering with an ability i call "Thunder Hammer" it is a missile ability, triggered so that is causes a dummy unit to fly forward with a loop, the loop also picks targets and adds them to a group.

Now comes my problem, im trying to cause the "Thunder Hammer" to shoot lightnings on each target in group. This is how i triggered it.

Code:
THL Loop
    Events
        Time - Every 0.05 seconds of game time
    Conditions
    Actions
        For each (Integer A) from 1 to THL_Count, do (Actions)
            Loop - Actions
                Lightning - Destroy Lightning[(Integer A)]
        Set THL_Count = 0
        -------- - --------
        Set TempPoint = (Position of TH_Missile)
        Unit Group - Pick every unit in TH_Group and do (Actions)
            Loop - Actions
                Set TempPoint2 = (Position of (Picked unit))
                Set THL_Count = (THL_Count + 1)
                Lightning - Create a Forked Lightning lightning effect from source TempPoint to target TempPoint2
                Set Lightning[THL_Count] = (Last created lightning effect)
                Custom script:   call RemoveLocation(udg_TempPoint2)
        Custom script:   call RemoveLocation(udg_TempPoint)

Logically, this should work. It's way to simple not to! :mad:
So... what did i miss? ;)
 

FroznYoghurt

New Member
Reaction score
37
Oh god... this is embarassing :>
I was gonna tell you that the rest makes no dif when I discovered I forgot to actually activate the loop in my ini trigger.

Good work all :thup:

PS. If a mod sees this feel free to delete the thread so that no evidence of that this ever occured exists anymore ;)
 
General chit-chat
Help Users

      The Helper Discord

      Staff online

      Members online

      Affiliates

      Hive Workshop NUON Dome World Editor Tutorials

      Network Sponsors

      Apex Steel Pipe - Buys and sells Steel Pipe.
      Top