• 🏆 Texturing Contest #33 is OPEN! Contestants must re-texture a SD unit model found in-game (Warcraft 3 Classic), recreating the unit into a peaceful NPC version. 🔗Click here to enter!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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