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

Unit Group

Status
Not open for further replies.
Level 4
Joined
Dec 27, 2008
Messages
72
Hey I have a basic question,

I have a roof, which becomes transparent when a unit belonging to player 1 / 2/ /3 /4 walks in.
The Animation Action (set color / transparency) only for works a single unit.
I can't figure out how to set my group of units (the roof) to a unit variable for it to work.
Any suggestions?
 
Level 10
Joined
Mar 16, 2009
Messages
354
if the roof is pre-placed then just have a unit variable set to the roof otherwise when the roof is created set a variable of type unit to it.

unitgroup - pick every unit in (YOUR_ROOF_UNITS) and loop actions:
transperate....... (Picked Unit).

that will cause all roofs to become transparent, but if there is more then one building you need to separate the roofs from the unitgroup. However if it is just one building using many roof pieces then this trigger is ideal.
 
Status
Not open for further replies.
Top