• 🏆 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 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 21
Joined
Dec 4, 2007
Messages
1,482
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