• 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.

Playing animation when entering region

Status
Not open for further replies.
Level 2
Joined
Oct 18, 2004
Messages
16
What I'm trying to achieve is when a unit(infernal) enters a region i want him to do some sort of animation, any animation will work for now because if i get the code right then i can just change which animation he does. Heres my current code. It does not work. Any Suggestions? I don't mind if the whole code has to start from scratch.

  • P1
    • Events
      • Unit - A unit enters Pause 1 <gen>
    • Conditions
    • Actions
      • Animation - Play Infernal[(Custom value of (Entering unit))]'s Stand 2 animation
      • Wait 2.00 seconds
      • Unit - Order (Entering unit) to Move To (Center of 02 <gen>)
 
Level 2
Joined
Oct 18, 2004
Messages
16
wow so simple, yet it worked! thanks!!
if anyone else reads this thread looking for an answer this is the code that works for me.(entering and triggering unit is the same unit here, when i deal with multiple units i use entering unit because you cant trigger two units at the same time)
  • Events
    • Unit - A unit enters Pause 1 <gen>
  • Conditions
  • Actions
    • Unit - Order (Triggering unit) to Stop
    • Animation - Play Infernal[(Custom value of (Entering unit))]'s Stand 2 animation
    • Wait 2.00 seconds
    • Unit - Order (Entering unit) to Move To (Center of 02 <gen>)
 
Status
Not open for further replies.
Top