H34DhUnT3r
Ultra Cool Member
- Reaction score
- 36
Okay,
I'll try to explain this is clear as i can
I have an ability in my TD that fires 4 breathe of fire in 4 directions (0,90,180,270 degrees)
The ability works, but when a tower (blood mage model) is placed near a cliff it will not fire in the direction of the cliff.
If it's placed as far as possible (hugging the pathing area) it does fire that way
Here's a screenshot that might clear things up
Here's an image in Worldedit with markings of which tower does work and which doesn't.
I hope the problem is clear
And I also hope that someone knows what's wrong
Thx in advance,
H34DhUnT3r[NL]
EDIT:
Requested Code:
I'll try to explain this is clear as i can
I have an ability in my TD that fires 4 breathe of fire in 4 directions (0,90,180,270 degrees)
The ability works, but when a tower (blood mage model) is placed near a cliff it will not fire in the direction of the cliff.
If it's placed as far as possible (hugging the pathing area) it does fire that way
Here's a screenshot that might clear things up
Here's an image in Worldedit with markings of which tower does work and which doesn't.
I hope the problem is clear
And I also hope that someone knows what's wrong
Thx in advance,
H34DhUnT3r[NL]
EDIT:
Requested Code:
Trigger:
- Fireblast
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fireblast (Hero Tower)
- Actions
- Set FireDummyPos = (Position of (Triggering unit))
- Set FireAngle = 0.00
- For each (Integer B) from 1 to 4, do (Actions)
- Loop - Actions
- Set FireAttPos = (FireDummyPos offset by 200.00 towards FireAngle degrees)
- Unit - Create 1 Dummy for (Owner of (Triggering unit)) at FireDummyPos facing FireAngle degrees
- Unit - Add a 1.00 second Generic expiration timer to (Last created unit)
- Unit - Add Fireblast (Dummy) to (Last created unit)
- Unit - Set level of Fireblast (Dummy) for (Last created unit) to HT_SkillLVL[2]
- Unit - Order (Last created unit) to Neutral Pandaren Brewmaster - Breath Of Fire FireAttPos
- Set FireAngle = (FireAngle + 90.00)
- Custom script: call RemoveLocation(udg_FireAttPos)
- Loop - Actions
- Events