Dregonx
TH.net Regular
- Reaction score
- 21
How do you remove leaks from something like this?
Or this:
Or this:
For each (Integer A) from 0 to 12, do (Actions)
Loop - Actions
Set TempPoint = (Target point of ability being cast)
Special Effect - Create a special effect at ((TempPoint offset by 100.00 towards ((Real((Integer A))) x 28.00) degrees) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl
Custom Script: call RemoveLocation( udg_TempPoint )
Custom Script: call DestroyEffect( GetLastCreatedEffectBJ() )
Code:For each (Integer A) from 0 to 12, do (Actions) Loop - Actions Set TempPoint = (Target point of ability being cast) Special Effect - Create a special effect at ((Position of (Target unit of ability being cast)) offset by 100.00 towards ((Real((Integer A))) x 28.00) degrees) using Objects\Spawnmodels\Other\NeutralBuildingExplosion\NeutralBuildingExplosion.mdl Custom Script: call RemoveLocation( udg_TempPoint )
You need to create and remove a variable for the polar offset too.
Set TempPoint = (Position of (Casting unit))
Set TempPoint2 = (TempPoint offset by ...)
Unit - Create 1 Footman for Player 1 (Red) at TempPoint2 facing 0 degrees
Custom Script: call RemoveLocation(udg_TempPoint)
Custom Script: call RemoveLocation(udg_TempPoint2)
set Point[1] =(Position of (Triggering Unit))
set Point[2] = ((Point[1])) offset by 100.00 towards ((Real((Integer A))) x 28.00) degrees)
Custom Script: call RemoveLocation( udg_Point[2] )
Custom Script: call RemoveLocation( udg_Point[1] )