• Listen to a special audio message from Bill Roper to the Hive Workshop community (Bill is a former Vice President of Blizzard Entertainment, Producer, Designer, Musician, Voice Actor) 🔗Click here to hear his message!
  • Read Evilhog's interview with Gregory Alper, the original composer of the music for WarCraft: Orcs & Humans 🔗Click here to read the full interview.
  • The Hive's 22nd Icon Contest: Creep Abilities is now concluded, time to vote for your favourite set of icons! Click here to vote!
  • ✅ The POLL for Hive's Texturing Contest #34 is OPEN! Vote for the TOP 3 SKINS! 🔗Click here to cast your vote!
  • ✅ The POLL for Hive's Techtree Contest #20 is OPEN! Vote for the TOP 3 FACTIONS! 🔗Click here to cast your vote!

Trigger reacting to Phoenic Fire?

Level 16
Joined
Jun 9, 2008
Messages
346

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