• 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.
  • It's time for the first HD Modeling Contest of 2025. Join the theme discussion for Hive's HD Modeling Contest #7! Click here to post your idea!

Playing an Anim before Morphing

Status
Not open for further replies.
Level 4
Joined
Sep 15, 2013
Messages
53
I have this:
  • Untitled Trigger 001
    • Events
      • Unit - Dire Tower 0000 <gen> Takes damage
    • Conditions
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • ((Percentage life of (Triggering unit)) Less than 100.00) and ((Percentage life of (Triggering unit)) Greater than 50.00)
        • Then - Actions
          • Animation - Play (Triggering unit)'s morph animation
          • Animation - Add the alternate animation tag to (Triggering unit)
          • Trigger - Turn off (This trigger)
        • Else - Actions
i also tried this:
  • Untitled Trigger 004
    • Events
      • Time - Elapsed game time is 1.00 seconds
    • Conditions
    • Actions
      • Unit Group - Pick every unit in (Units in (Playable map area)) and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Picked unit) is A structure) Equal to True
            • Then - Actions
              • Unit Group - Add (Picked unit) to Buildings1Group
            • Else - Actions
  • Untitled Trigger 003
    • Events
      • Time - Every 0.25 seconds of game time
    • Conditions
    • Actions
      • Unit Group - Pick every unit in Buildings1Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • ((Percentage life of (Picked unit)) Less than 100.00) and ((Percentage life of (Picked unit)) Greater than 50.00)
            • Then - Actions
              • Animation - Play (Picked unit)'s morph animation
              • Animation - Add the alternate animation tag to (Picked unit)
              • Unit Group - Remove (Picked unit) from Buildings1Group
              • Unit Group - Add (Picked unit) to Buildings2Group
            • Else - Actions
      • Unit Group - Pick every unit in Buildings2Group and do (Actions)
        • Loop - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Percentage life of (Picked unit)) Less than or equal to 50.00
            • Then - Actions
              • Animation - Play (Picked unit)'s morph alternate animation
              • Animation - Remove the alternate animation tag to (Picked unit)
              • Animation - Add the flesh animation tag to (Picked unit)
              • Unit Group - Remove (Picked unit) from Buildings2Group
            • Else - Actions
I wanna play the morph animation before adding the alternate tag to trigger the second form. But it wont play. It jumps directly to the alternate form. I tried using wait function but still it wont play. Can somebody help me?
 
Last edited:
Level 22
Joined
Dec 4, 2007
Messages
1,537
Did you try to
  • Animation - Queue (Attacking unit)'s attack animation
  • Animation - Play (Attacking unit)'s attack animation
?

I'm not sure if buildings work much different, perhaps you have to rename the animation's name via magos model editor.
 
Status
Not open for further replies.
Top