SkyXyden
New Member
- Reaction score
- 3
I'm having some problem with a skill I created, it create lag whenever it is used even though I already tried to find for leaks..
Skill Description
Thrust forward at amazing speed, stabbing through enemies and comes back right at them, dealing damage each hit.
Helps for this? I would gladly add your rep if you can save this skill.
Skill Description
Thrust forward at amazing speed, stabbing through enemies and comes back right at them, dealing damage each hit.
Code:
ZEN Boomerang Step
Events
Unit - A unit Starts the effect of an ability
Conditions
(Ability being cast) Equal to ZEN 2 Boomerang Step
Actions
Set BStepUnit = (Triggering unit)
Set BStepPoint[1] = (Position of BStepUnit)
Set BStepPoint[2] = ((Position of BStepUnit) offset by 1200.00 towards (Angle from (Position of (Triggering unit)) to (Target point of ability being cast)) degrees)
Set BStepPoint[3] = (Target point of ability being cast)
Unit - Pause BStepUnit
Unit - Hide BStepUnit
Unit - Make BStepUnit Invulnerable
-------- --- --------
Unit - Create 1 Dummy Unit for (Owner of BStepUnit) at BStepPoint[1] facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Animation - Change (Last created unit)'s size to (140.00%, 140.00%, 140.00%) of its original size
Special Effect - Create a special effect at BStepPoint[1] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Add ZEN 2 Boomerang Step (Blast Point) to (Last created unit)
Unit - Set level of ZEN 2 Boomerang Step (Blast Point) for (Last created unit) to (Level of ZEN 2 Boomerang Step for (Triggering unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave BStepPoint[3]
-------- --- --------
Set Temp_Point = (Center of Heroic Ground <gen>)
Unit - Create 1 Dummy Unit (Sight Giver) for (Owner of BStepUnit) at Temp_Point facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Turn collision for (Last created unit) Off
Unit - Move (Last created unit) instantly to BStepPoint[1]
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: call RemoveLocation(udg_BStepPoint[1])
Wait 0.40 game-time seconds
-------- --- --------
Unit - Create 1 Dummy Unit for (Owner of (Triggering unit)) at BStepPoint[2] facing Default building facing degrees
Animation - Change (Last created unit)'s size to (140.00%, 140.00%, 140.00%) of its original size
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Special Effect - Create a special effect at BStepPoint[2] using Abilities\Spells\Human\Thunderclap\ThunderClapCaster.mdl
Special Effect - Destroy (Last created special effect)
Unit - Add ZEN 2 Boomerang Step (Blast Point) to (Last created unit)
Unit - Set level of ZEN 2 Boomerang Step (Blast Point) for (Last created unit) to (Level of ZEN 3 Intense Blade for (Triggering unit))
Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave BStepPoint[3]
-------- --- --------
Set Temp_Point = (Center of Heroic Ground <gen>)
Unit - Create 1 Dummy Unit (Sight Giver) for (Owner of BStepUnit) at Temp_Point facing Default building facing degrees
Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
Unit - Turn collision for (Last created unit) Off
Unit - Move (Last created unit) instantly to BStepPoint[2]
Custom script: call RemoveLocation(udg_Temp_Point)
Custom script: call RemoveLocation(udg_BStepPoint[2])
Custom script: call RemoveLocation(udg_BStepPoint[3])
Wait 0.40 game-time seconds
Unit - Unpause BStepUnit
Unit - Unhide BStepUnit
Unit - Make BStepUnit Vulnerable
Selection - Add (Triggering unit) to selection for (Owner of (Triggering unit))
Helps for this? I would gladly add your rep if you can save this skill.