• 🏆 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!

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