skyblader
You're living only because it's illegal killing.
- Reaction score
- 159
[Solved]
Edit: Found the problem in another trigger LR Damage
Events
Conditions
Actions
Unit Group - Pick every unit in LRGroup and do (Actions)
Loop - Actions
Set TempPoint = (Position of (Picked unit))
Set LRCurrentTime = (Load 0 of (Key (Picked unit)) from LRHash)
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
LRCurrentTime Less than or equal to 0.00
Then - Actions
Unit - Create 1 DummyUnit for (Owner of (Picked unit)) at TempPoint facing Default building facing degrees
Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
Unit - Add LRDummyAbility to (Last created unit)
Unit - Order (Last created unit) to Human Mountain King - Thunder Clap
For each (Integer A) from 1 to LREffectNumber2, do (Actions)
Loop - Actions
For each (Integer B) from 1 to LREffectNumber, do (Actions)
Loop - Actions
Set TempPoint2 = (TempPoint offset by (LRDist x (Real((Integer A)))) towards (LRAngle x (Real((Integer B)))) degrees)
Special Effect - Create a special effect at TempPoint2 using Objects\Spawnmodels\Human\FragmentationShards\FragBoomSpawn.mdl
Special Effect - Destroy (Last created special effect)
Custom script: call RemoveLocation(udg_TempPoint2)
Hashtable - Clear all child hashtables of child (Key (Picked unit)) in LRHash
Unit Group - Remove (Picked unit) from LRGroup
Else - Actions
Special Effect - Create a special effect at TempPoint using Abilities\Spells\Orc\AncestralSpirit\AncestralSpiritCaster.mdl
Special Effect - Destroy (Last created special effect)
Hashtable - Save (LRCurrentTime - LREffectInterval) as 0 of (Key (Picked unit)) in LRHash
Custom script: call RemoveLocation(udg_TempPoint)
The problem here... Everything else works fine except the point. I can't see what's wrong with setting the point variable to position of picked unit, it just doesn't work. When I try to create an effect or unit at that point, they can't find the point.