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

[Solved] Animation

Status
Not open for further replies.
Level 3
Joined
Apr 30, 2013
Messages
22
First thing: My English is bad so sorry :grin:
Now okay, let's get to the point. I have a question :" How can we change the normal walk with gold,attack with gold,stand with gold animation of a Peasant when in the Peasant inventory has somekind item ( Ex: Gold ) and when the item remove, the Peasant returnt to normal animtion". Can anyone know how to do this ? I'm making some kind of simple Mining System and i need this to comple the system. :grin:
 
Level 10
Joined
Dec 15, 2012
Messages
650
This should works properly
  • Events
    • Unit - A unit Acquires an item
  • Conditions
    • (Unit Type of (Triggering unit)) equal to Peasant
    • (Item Type of (Manipulating item)) equal to Gold
  • Actions
    • Animation - Add Gold animation tag to (Triggering unit)
when he drops item
  • Events
    • Unit - A unit Loses an item //If I remember, this is the event.
  • Conditions
    • (Unit Type of (Triggering unit)) equal to Peasant
    • (Item Type of (Manipulating item)) equal to Gold
  • Actions
    • Animation - Remove Gold animation tag to (Triggering unit)
 
Status
Not open for further replies.
Top