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

Linking two (or more) units

Status
Not open for further replies.
Level 5
Joined
May 23, 2008
Messages
148
How to make a unit 'point' to another one or to a group of units. I would like to not be limited (e.g. by using different unit classifications, multiple level (like... 100) abilities, arrays of variables, duplicated unit-types :razz: etc.). It may use dummy units though, I have nothing against them.

It would be particualrily useful in my attempt of creating fully featured bunker. I'm using a Gunman unit type and a dummy Gunman Loaded unit type. Currently when a Gunman is being unloaded random dummy unit of type Gunman Loaded is being removed from the game. With a linking system applied I could make it possible to remember which Gunman is which and properly simulate their mana, permanent bonuses, custom values and potentially items. Notice that there will be more unit types able to occupy a bunker.

if it appears not to be possible, I shall use arrays of variables and using custom values as indexes to it for optimization's sake.

Thank you for potential answers.​
 
Last edited by a moderator:
Status
Not open for further replies.
Top