Hey nimos100, Thank you so much for helping me out here
[quote:2q5k0x76]1) yes, the values are different for each object but each object has the same variables... so i thought there is an easy way to just say give all those objects the instance variable "description, shield, firepower" and then enter each value manually without having to create each instance variable for each object manually as they are aleways the same.
If you create an object lets say "Asteroid" and you give it a variable, such as "Asteroid type" this is added for all asteroid objects and can be set at design time to something default lets say "Iron ore".
Whenever you create an asteroid it will by default be this type.
If you add the asteroid object to a family, this variable will not be available if you use the family to select the asteroid object.
And from your screenshot it seems that this is what you are trying to do.
[quote:2q5k0x76]"Set text to RadarObjects.description1"
But looking at the asteroid instance variables there are nothing called description1, but something called description. Which I assume is the one you would like to use?
Variables that are added to a family is shared by all objects in that family, but variables added to specific objects are not available to family objects, even though they are part of the same family. Which makes sense because if you besides having an asteroid in your family also had a spaceship, it wouldn't make much sense if this had an "Asteroid type".
So to me it seems like you have mixed up family variables and specific object variables. So to fix It you have to use only the description from the RadarObjects as this is shared amongst all the objects in the family and then remove the description from the specific objects.
Then you will also be able to give all objects that are the same in the family a default value, so for instant if "Asteroid" and "Spaceship" are in the same family and you have a description variable. You can in design view set Asteroid description = "This is an asteroid" and for the spaceships set it to "This is a spaceship" and this will be the default value for all newly created spaceships or asteroids.
Hope that makes sense, know it can be a bit confusing?
[quote:2q5k0x76]2) got that but actually i will show the description from the object in the hud... but i cant get the variable "description" from the object, just from the family ...
Pretty sure this is due to the above problem.
[quote:2q5k0x76]Maybe i can answer my own question... it seems to be not possible, i should use some kind of 2D array, as the dictionary only supports 1D... am i right?
Dictionaries are 1D, but I don't think you should jump into arrays as they will not solve the problem and is not needed in this case anyway.
As I see it you mix up what different types of objects are and therefore might be confusing yourself a bit
If you have a "Man object" and a "Women object" these are not the same obvious, if you add both of them to a family called "Humans" they are still different object, however now you added a family object as well, and this object is also a different object than the Man and Women objects as its a Human object in this case. So in theory you have 3 objects.
The benefit of the family object is that each member of the family inheritance the family variables and can make use of them. So in this case whether you are a man or a women you have an age. So you can add an "Age" variable to the Human object and then both the man and women object can make use of it. Using a family also allows you to work on all members of it. So if you wanted to select all humans that are 20 years old. It will select all humans, men and womens a like that are 20 years old, instead of you first having to select all women that are 20 years old and then all men as well. However a women can be pregnant but a man cant, so it wouldn't make much sense to add a variable to Humans called "Is_pregnant" for instant so this you could add to the Women object instead, and then its only available to Women.