MicroSheep
New Member
- Reaction score
- 3
Okay so i made a trigger so that when a unit casts an ability, it creates a dummy with the missle affect which travels in a line. Now it works fine, except if your facing the opposite way that you casted, the dummy goes a different way to the point you selected.
This is the trigger:
How do i make it so regardless of your facing angle, it travels facing the point you selected.
This is the trigger:
Trigger:
- Casting
- Events
- Unit - A unit Starts the effect of an ability
- Conditions
- (Ability being cast) Equal to Fireball
- Actions
- Set TempPoint[0] = (Target point of ability being cast)
- Set TempPoint[1] = (Position of (Triggering unit))
- Unit - Create 1 Firebolt for (Owner of (Triggering unit)) at (TempPoint[1] offset by 50.00 towards (Facing of (Triggering unit)) degrees) facing (Facing of (Triggering unit)) degrees
- Set Firebolt[(Player number of (Owner of (Triggering unit)))] = (Last created unit)
- Unit - Turn collision for Firebolt[1] Off
- Trigger - Turn on Movement <gen>
- Trigger - Add to Contact and Damage <gen> the event (Unit - A unit comes within 50.00 of Firebolt[1])
- Wait 2.50 seconds
- Trigger - Turn off Movement <gen>
- Unit - Remove Firebolt[1] from the game
- Custom script: call RemoveLocation (udg_temp_point(0))
- Custom script: call RemoveLocation (udg_temp_point(1))
- Events
How do i make it so regardless of your facing angle, it travels facing the point you selected.