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

Defend Animation

Status
Not open for further replies.
Level 1
Joined
Dec 17, 2018
Messages
2
Hi!

I've added the Defend (footman) ability to a Hero I've created. Is it possible to give the model a change in color or any other effect while the defend ability is being used. How could I do it?


Best!
 
Level 6
Joined
Jun 4, 2017
Messages
172
Hi!

I've added the Defend (footman) ability to a Hero I've created. Is it possible to give the model a change in color or any other effect while the defend ability is being used. How could I do it?


Best!
You can try to change the color of the model with a trigger:
  • Changing color when defending
    • Events
      • Unit - A unit is issued an order with no target
    • Conditions
      • (Triggering unit) Equal to Your_Hero //I didn't understand if you want to change the color only when a specified hero uses the ability, if you don't want this just remove this condition
    • Actions
      • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
        • If - Conditions
          • (Issued order) Equal to (Order(defend))
        • Then - Actions
          • Animation - Change (Triggering unit)'s vertex coloring to (50.00%, 50.00%, 50.00%) with 0.00% transparency
        • Else - Actions
          • If (All Conditions are True) then do (Then Actions) else do (Else Actions)
            • If - Conditions
              • (Issued order) Equal to (Order(undefend))
            • Then - Actions
              • Animation - Change (Triggering unit)'s vertex coloring to (100.00%, 100.00%, 100.00%) with 0.00% transparency
            • Else - Actions
 
Level 1
Joined
Dec 17, 2018
Messages
2
Ok, pretty cool!

I'll have a look at that, still a noob and don't know much about triggers. I've checked the footman unit and the defend ability and I can't even find where it select a different model (animation) when the defend ability is being used, maybe it's also in triggers.

Thanks man!
 
Status
Not open for further replies.
Top