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

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: