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

[General] How to make buildings to work?

Status
Not open for further replies.
Level 11
Joined
May 31, 2008
Messages
698
maybe Animation - Play unit animation( work ) or whatever the work animation is called. You can see the animations name if you make the unit in world editor and click on it then a picture of it will show up in bottom left corner of the world editor window and you can select different animations there and see what they look like and what they're called
 
Level 3
Joined
Oct 8, 2011
Messages
27
maybe Animation - Play unit animation( work ) or whatever the work animation is called. You can see the animations name if you make the unit in world editor and click on it then a picture of it will show up in bottom left corner of the world editor window and you can select different animations there and see what they look like and what they're called

Erm, what did you said?
 
Level 7
Joined
Sep 9, 2007
Messages
253
I looked at the ancient of Wind, it's work animation is called "work alternate animation". I found this by placing it on the map in the world editor and then selecting it to see the details on the left.

To make the unit play this animation in your map you can try using the following trigger action.


  • Animation - Play Ancient of Wind's stand work alternate animation
 
I looked at the ancient of Wind, it's work animation is called "work alternate animation". I found this by placing it on the map in the world editor and then selecting it to see the details on the left.

To make the unit play this animation in your map you can try using the following trigger action.


  • Animation - Play Ancient of Wind's stand work alternate animation

this will play only the animation once.
the recomended action would be:
Animation - Queue unit animation
  • Animation - Queue Barracks 0000 <gen>'s Stand Work animation
But this will queue only a single unit anim.
you better use Unit Group action to pick all the unit in certain region and then queue the picked units animation...
  • Unit Group - Pick every unit in (Units in Buildings Region <gen> matching ((Unit-type of (Picked unit)) Equal to Barracks)) and do (Animation - Queue (Picked unit)'s Stand Work animation)
Warning: this action leaks

So, to prevent leaks... Your final trigger would be:
  • Custom script: set bj_wantDestroyGroup = true
  • Unit Group - Pick every unit in (Units in Buildings Region <gen> matching ((Unit-type of (Picked unit)) Equal to Barracks)) and do (Animation - Queue (Picked unit)'s Stand Work animation)
 
Status
Not open for further replies.
Top