- Joined
- Sep 12, 2008
- Messages
- 657
Just for any ideas: this knockback system was made by me.
The Code:
My problem is this:
i need to remove the Knockback_Point(Custom value of Picked unit),
but since im not so good with jass.. and we dont really get along..
i cant really understend how to cheak unit custom value..
so.. if any 1 can help, it'll be awesome. thanks.
The Code:
-
Knockback Gui
-
Events
-
Time - Every 0.03 seconds of game time
-
-
Conditions
-
Actions
-
Unit Group - Pick every unit in Knockback_Group and do (Actions)
-
Loop - Actions
-
Set Knockback_Point2 = (Position of (Picked unit))
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Distance between Knockback_Point[(Custom value of (Picked unit))] and Knockback_Point2) Less than or equal to (Knockback_Distance[(Custom value of (Picked unit))] x Knockback_Duration[(Custom value of (Picked unit))])
-
-
Then - Actions
-
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
-
If - Conditions
-
(Number of units in Coliseun_Range) Equal to 0
-
-
Then - Actions
-
Unit - Move (Picked unit) instantly to (Knockback_Point2 offset by Knockback_Distance[(Custom value of (Picked unit))] towards Knockback_Angle[(Custom value of (Picked unit))] degrees)
-
Special Effect - Create a special effect at Knockback_Point2 using Knockback_Effect[(Custom value of (Picked unit))]
-
Special Effect - Destroy (Last created special effect)
-
-
Else - Actions
-
Unit Group - Pick every unit in Coliseun_Range and do (Actions)
-
Loop - Actions
-
Set Knockback_Starter[(Custom value of (Picked unit))] = (Picked unit)
-
Set Knockback_Point[(Custom value of (Picked unit))] = (Position of (Picked unit))
-
Set Knockback_Angle[(Custom value of (Picked unit))] = ((Facing of (Picked unit)) + 180.00)
-
Set Knockback_Distance[(Custom value of (Picked unit))] = 50.00
-
Set Knockback_Duration[(Custom value of (Picked unit))] = 2.00
-
Set Knockback_Effect[(Custom value of (Picked unit))] = Effect-KnockbackDust.mdx
-
Unit Group - Add (Picked unit) to Knockback_Group
-
-
-
-
-
-
Else - Actions
-
Unit Group - Remove (Picked unit) from Knockback_Group
-
Set Knockback_Point[(Custom value of (Picked unit))] = (Position of (Picked unit))
-
-------- set udg_Knockback_Point[GetUnitUserData(GetEnumUnit())] = GetUnitLoc(GetEnumUnit()) --------
-
Custom script: call RemoveLocation(udg_Knockback_Point[GetUnitUserData(GetEnumUnit())]
-
-
-
Custom script: call RemoveLocation(udg_Knockback_Point2)
-
-
-
-
My problem is this:
i need to remove the Knockback_Point(Custom value of Picked unit),
but since im not so good with jass.. and we dont really get along..
i cant really understend how to cheak unit custom value..
so.. if any 1 can help, it'll be awesome. thanks.