Nenad
~Choco Coronet~ Omnomnom
- Reaction score
- 137
I have a bit of a problem with one of my AI abilities.
It's supposed to: Fire a shockwave in front, and two more shockwaves on each side that differ by an angle, but go in a cone in front of the hero. Like this: /|\ Lines=shockwaves. However, my ability fires only 1 (wtf?) shockwave, and usually at a wrong angle (sometimes as much as 90 degrees wrong). The triggers are done below, help me solve this problem please ^^
It's supposed to: Fire a shockwave in front, and two more shockwaves on each side that differ by an angle, but go in a cone in front of the hero. Like this: /|\ Lines=shockwaves. However, my ability fires only 1 (wtf?) shockwave, and usually at a wrong angle (sometimes as much as 90 degrees wrong). The triggers are done below, help me solve this problem please ^^
Trigger:
- Pit Lord TriTippedShockwave
- Events
- Unit - A unit Is attacked
- Conditions
- (Unit-type of (Attacking unit)) Equal to Pit Lord
- Actions
- Set TempPoint = (Position of (Attacked unit))
- Set TempPoint2 = (Position of (Attacking unit))
- Unit - Order (Attacking unit) to Orc Tauren Chieftain - Shockwave TempPoint
- Custom script: call RemoveLocation(udg_TempPoint)
- Custom script: call RemoveLocation(udg_TempPoint2)
- Set TempPoint = (Center of Orcs Human Camp Enterance <gen>)
- Unit - Order Pit Lord 0046 <gen> to Attack-Move To TempPoint
- Trigger - Turn off (This trigger)
- Wait 11.00 seconds
- Trigger - Turn on (This trigger)
- Events
Trigger:
- Pit Lord TriTippedDummy1
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Tri Tipped Shockwave
- Actions
- Set TempReal = (Facing of (Casting unit))
- Set TempPoint3 = (Target point of ability being cast)
- Unit - Create 1 Dummy for (Owner of (Casting unit)) at TempPoint3 facing Default building facing degrees
- Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add Tri Tipped Shockwave (dummy) to (Last created unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (TempPoint3 offset by 0.00 towards (TempReal + 10.00) degrees)
- Custom script: call RemoveLocation(udg_TempPoint3)
- Events
Trigger:
- Pit Lord TriTippedDummy2
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Tri Tipped Shockwave
- Actions
- Set TempReal = (Facing of (Casting unit))
- Set TempPoint4 = (Target point of ability being cast)
- Unit - Create 1 Dummy for (Owner of (Casting unit)) at TempPoint4 facing Default building facing degrees
- Animation - Change (Last created unit)'s size to (100.00%, 100.00%, 100.00%) of its original size
- Unit - Add a 2.00 second Generic expiration timer to (Last created unit)
- Unit - Add Tri Tipped Shockwave (dummy) to (Last created unit)
- Unit - Order (Last created unit) to Orc Tauren Chieftain - Shockwave (TempPoint4 offset by 0.00 towards (TempReal - 10.00) degrees)
- Custom script: call RemoveLocation(udg_TempPoint4)
- Events