I made 30 Rocks for my spell, and created special effects for them when they spawn. But it could be a bit laggy on slower computers, so my question: how would you put special effects on half?
Sample trigger:
I was thinking something like
anyway, +rep for people that help.
Sample trigger:
-
For each (Integer WallOfRock_Integer) from 1 to 30, do (Actions)
-
Loop - Actions
- Special Effect - Create a special effect at (WallOfRock_TargetPoint offset by 500.00 towards ((Real(WallOfRock_Integer)) x 12.00) degrees) using Abilities\Spells\Other\Volcano\VolcanoDeath.mdl
- Set WallOfRock_SpecialEffect = (Last created special effect)
- Destructible - Create a Pathing Blocker (Ground) at (WallOfRock_TargetPoint offset by 500.00 towards ((Real(WallOfRock_Integer)) x 12.00) degrees) facing WallOfRock_Angle with scale 1.00 and variation 0
- Set WallOfRock_PathingBlocker[WallOfRock_Integer] = (Last created destructible)
- Unit - Create 1 Wall of Rock rock for (Owner of WallOfRock_Caster) at (WallOfRock_TargetPoint offset by 500.00 towards ((Real(WallOfRock_Integer)) x 12.00) degrees) facing WallOfRock_TargetPoint
- Set WallOfRock_Rocks[WallOfRock_Integer] = (Last created unit)
- Special Effect - Destroy WallOfRock_SpecialEffect
-
Loop - Actions
I was thinking something like
- For each (Integer WallOfRock_Integer + 1)
anyway, +rep for people that help.