Cokemonkey11
New Member
- Reaction score
- 18
I've been trying to get an ability for my map to work, the ability - War Shout.
Whats it do?
75 dammage and knockback to any unit within 300 gu.
It works great! But it lags!
Interpolation time is set to .04 seconds, but a visible lag is still there!
Trigger 1 -
Trigger 2 -
This is very confusing to me... If anyone can help, or direct me to a tutorial, taht would be great.
Peace,
Whats it do?
75 dammage and knockback to any unit within 300 gu.
It works great! But it lags!
Interpolation time is set to .04 seconds, but a visible lag is still there!
Trigger 1 -
Code:
War Shout
Events
Unit - A unit Begins casting an ability
Conditions
(Ability being cast) Equal to War Shout
Actions
Wait 0.40 seconds
Unit Group - Pick every unit in (Units within 300.00 of (Position of (Casting unit))) and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Make (Picked unit) face (Casting unit) over 0.00 seconds
Unit Group - Remove all units from OS_WarShout_Victim
Set OS_WarShout_Victim = (Last created unit group)
Trigger - Run War Shout2 <gen> (checking conditions)
Else - Actions
Trigger 2 -
Code:
War Shout2
Events
Conditions
Actions
Unit Group - Pick every unit in OS_WarShout_Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 75.00 towards ((Facing of (Picked unit)) - 180.00) degrees)
Else - Actions
Wait 0.04 seconds
Unit Group - Pick every unit in OS_WarShout_Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 75.00 towards ((Facing of (Picked unit)) - 180.00) degrees)
Else - Actions
Wait 0.04 seconds
Unit Group - Pick every unit in OS_WarShout_Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 75.00 towards ((Facing of (Picked unit)) - 180.00) degrees)
Else - Actions
Wait 0.04 seconds
Unit Group - Pick every unit in OS_WarShout_Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 75.00 towards ((Facing of (Picked unit)) - 180.00) degrees)
Else - Actions
Wait 0.04 seconds
Unit Group - Pick every unit in OS_WarShout_Victim and do (Actions)
Loop - Actions
If (All Conditions are True) then do (Then Actions) else do (Else Actions)
If - Conditions
(Picked unit) Not equal to (Casting unit)
Then - Actions
Unit - Move (Picked unit) instantly to ((Position of (Picked unit)) offset by 75.00 towards ((Facing of (Picked unit)) - 180.00) degrees)
Else - Actions
Wait 0.04 seconds
This is very confusing to me... If anyone can help, or direct me to a tutorial, taht would be great.
Peace,