Help with complex leak removal

Renendaru

(Evol)ution is nothing without love.
Reaction score
309
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 ((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() )
 

Dregonx

TH.net Regular
Reaction score
21
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 )

Wow, I didn't know it was so simple, lol. Should of thought of that, well thanks. +Rep! =)

You need to create and remove a variable for the polar offset too.

What's the code for removing Polar Offset?
 
T

toaster

Guest
And I didn't know how easy it was to create such eye candy for a spell...

Thanks for asking :p
 

Artificial

Without Intelligence
Reaction score
326
> What's the code for removing Polar Offset?
Polar offset is just another point. Example:
Code:
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)
 

manofsteel

New Member
Reaction score
36
Code:
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] )
 
General chit-chat
Help Users
  • No one is chatting at the moment.

      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