Trigger reacting to Phoenic Fire?

Level 16
Joined
Jun 9, 2008
Messages
342

Shortlegs

Specifically, I want to have a trigger that makes it so the body part "Head" gets locked to whatever target unit gets hit with the phoenix fire missiles.

So far, I have been unable to trigger that with "unit is attacked" or any of the ability triggers? (my headlock trigger otherwise works, if I do for instance unit is attacked, lock head of attacking unit to attacked unit, there is no issue).

I'd need a trigger that
1) recognizes the use of Phoenix Fire
2) recognizes the unit where the phoenix fire is coming from
3) recognized the unit that is getting hit with the phoenix fire

Any ideas?
 
"Unit is attacked" is for when a unit begins its attack animation, not when a unit is actually damaged. For that, you'd need "a unit takes damage", but that only exists on patches after 1.32 (aka Reforged).

However, I don't think that's enough either; I think the go-to here is installing a damage engine (Bribe's is especially good) and trying to detect the damage like that. You can find the system on Hive and there's plenty of examples and tutorials on how it works.
 
  • Trigger
    • Events
      • Unit - A unit Takes damage
    • Conditions
      • (Damage From Normal Attack) Equal to False
      • (Unit-type of (Damage source)) Equal to MyPhoenixFireUnit
    • Actions
      • Animation - Lock (Damage source)'s Head to face (Triggering unit), offset by (0.00, 0.00, 90.00)
However, this assumes that your unit has no other abilities, i.e. no ways to deal non-normal attack damage except for PF, so uses might be limited, but it's a start I'd say
 
Here's a triggered replacement you could use:
 
Back
Top