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.
Logically, this should work. It's way to simple not to!
So... what did i miss?
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!
So... what did i miss?