Got another question if someone can spare a moment. I was wondering if it was possible to get the name/id that the map editor assigns to units/buildings placed on the map? I tried the GetUnitId function which returns a number, but that number is subject to change based on the total count and not even sure what that number relates to.
I have the unit object, I need some way to convert the unit object to the assigned ID or name.
Well, define assigned ID because we don't know what you're talking about.
Do you mean the four letter integer like 'hfoo'? if so then this will solve your problem.