• 🏆 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!
  • 🏆 Hive's 6th HD Modeling Contest: Mechanical is now open! Design and model a mechanical creature, mechanized animal, a futuristic robotic being, or anything else your imagination can tinker with! 📅 Submissions close on June 30, 2024. Don't miss this opportunity to let your creativity shine! Enter now and show us your mechanical masterpiece! 🔗 Click here to enter!

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