[Trigger] 'Triggering unit' not preserved?

Status
Not open for further replies.
Level 8
Joined
Mar 12, 2008
Messages
437
I have a spell similar to Phase Shift (based on a .01 sec Wind Walk):

  • Set P[1] = (Position of (Triggering unit))
  • Unit - Hide (Triggering unit)
  • Unit - Pause (Triggering unit)
  • Unit - Make (Triggering unit) Invulnerable
  • Special Effect - Create a special effect at P[1] using Abilities\Weapons\WingedSerpentMissile\WingedSerpentMissile.mdl
  • Custom script: call RemoveLocation(udg_P[1])
  • Special Effect - Destroy (Last created special effect)
  • Wait (2.00 x (Real((1 + (Level of Vanish (Wind Walk) for (Triggering unit)))))) seconds
  • Unit - Unhide (Triggering unit)
  • Unit - Unpause (Triggering unit)
  • Unit - Make (Triggering unit) Vulnerable
It's always worked, except this one time. The unit was unhidden, but it was still paused.
It didn't take any damage from anything either, but its armour wasn't marked with 'invulnerable'.
There is no other trigger that causes the unit to pause either. Was the 'triggering unit' storage lost?
 
Level 8
Joined
Mar 12, 2008
Messages
437
The only other 'pause' action I have is 'pause last created unit', but that's not it, unless there's some serious bug.

Try change the order of your actions.

Pause,
Make invulnerable,
then Hide

Unhide,
Unpause,
then make vulnerable

The order I used worked hundred times, but this seems more logical, so I'll use this instead and hope for the best.

Any reason you don't use standart phase shift ability?

There was some reason, but I forgot.

Odd. I copied your trigger 1:1 and it works perfectly fine for me. Could you post the whole trigger?

Yeah, it's worked every time for me too, except just once, one single time. I'm really puzzled why it didn't work that one time. The only thing I didn't copy was the spell event & condition.
 
Status
Not open for further replies.
Top