- Joined
- May 11, 2012
- Messages
- 2,108
I want to know is it possible to clear point leaks like this(I very hope it is)?
here's the trigg:
here's the trigg:
-
Custom script: call RemoveLocation(udg_StormHammer_UnitsPoints[(Integer A)])
-
Storm Hammer 2
-

Events
-


Time - StormHammer_Timer expires
-
-

Conditions
-

Actions
-


Set StormHammer_Integer = 90
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




Set StormHammer_Integer = (StormHammer_Integer + 45)
-




Set StormHammer_UnitsPoints[(Integer A)] = ((Position of StormHammer_TargetUnit) offset by 0.00 towards (Real(StormHammer_Integer)) degrees)
-




Unit - Create 1 Dummy Storm Bolt Stunner for (Owner of StormHammer_TrigUnit) at StormHammer_UnitsPoints[(Integer A)] facing (90.00 x (Real((Integer A)))) degrees
-




Unit - Turn collision for StormHammer_Units[(Integer A)] Off
-




Set StormHammer_Units[(Integer A)] = (Last created unit)
-




Unit - Add Dummy Storm Bolt (Arced Hammers) to (Last created unit)
-




Unit - Set level of Dummy Storm Bolt (Arced Hammers) for (Last created unit) to (Level of Storm Hammer for StormHammer_TrigUnit)
-




Unit - Add a 1.00 second Generic expiration timer to StormHammer_Units[(Integer A)]
-




Custom script: call RemoveLocation(udg_StormHammer_UnitsPoints[(Integer A)])
-
-
-


Set StormHammer_Integer = 90
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




Set StormHammer_Integer = (StormHammer_Integer + 45)
-




Set StormHammer_EnemyUnitsPoints[(Integer A)] = ((Position of StormHammer_TargetUnit) offset by 450.00 towards (Real(StormHammer_Integer)) degrees)
-




Unit - Create 1 Dummy Storm Bolt Enemy for Player 12 (Brown) at StormHammer_EnemyUnitsPoints[(Integer A)] facing (Facing of StormHammer_Units[(Integer A)]) degrees
-




Unit - Turn collision for StormHammer_EnemyUnits[(Integer A)] Off
-




Set StormHammer_EnemyUnits[(Integer A)] = (Last created unit)
-




Unit - Add a 1.00 second Generic expiration timer to StormHammer_EnemyUnits[(Integer A)]
-




Custom script: call RemoveLocation(udg_StormHammer_EnemyUnitsPoints[(Integer A)])
-
-
-


Set StormHammer_Integer = 0
-


-------- --------------------- --------------------- Second Shit --------------------- --------------------- --------
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




Unit - Order StormHammer_Units[(Integer A)] to Human Mountain King - Storm Bolt StormHammer_EnemyUnits[(Integer A)]
-
-
-


Wait 0.90 seconds
-


Set StormHammer_Integer = 90
-


For each (Integer A) from 1 to 8, do (Actions)
-



Loop - Actions
-




Set StormHammer_Integer = (StormHammer_Integer + 45)
-




Set StormHammer_UnitsPoints[(Integer A)] = ((Position of StormHammer_TargetUnit) offset by 0.00 towards (Real(StormHammer_Integer)) degrees)
-




Unit - Create 1 Dummy Storm Bolt Stunner for (Owner of StormHammer_TrigUnit) at StormHammer_UnitsPoints[(Integer A)] facing (90.00 x (Real((Integer A)))) degrees
-




Set StormHammer_Units[(Integer A)] = (Last created unit)
-




Unit - Add Dummy Storm Bolt (Storm Hammer) to (Last created unit)
-




Unit - Set level of Dummy Storm Bolt (Storm Hammer) for (Last created unit) to (Level of Storm Hammer for StormHammer_TrigUnit)
-




Unit - Order (Last created unit) to Orc Tauren Chieftain - War Stomp
-




Unit - Add a 1.00 second Generic expiration timer to StormHammer_Units[(Integer A)]
-
-
-


Set StormHammer_Integer = 0
-
-







