First of all thanks to all of you for all of your help. I hope that very soon I will be able to answer questions on this forum.
I have set all of my enemies, playerUnits and buildings in their respective Families ( full version ).
All of my functions work fine.
The only thing I am having issue with is this.
When you click on one of those objects in the game, I want to display information about that object. eg. Health 25 or 50, ArmorClass 5, ProperName = "Swordsman", and a different profile picture.
So there are game objects that have platform behaviors on them and then there are ICONS for each object that is just an image.
Is there a way to create an object based on the object clicked instance variable ICON?