Quote:
Originally Posted by TheDarkWraith
I'm finding it quite difficult to fix the small 'problem' that the patch that prevents units from falling through the sea floor causes with the subnets. The problem is once the unit is 'destroyed' it's Commanders controller (this controller contains all the data about unit's type, classname, name, country, etc.) is destroyed also and set to a null pointer. Thus there's no way for me to get the unit's type (i.e. 102, 200, 303, etc.) to prevent the patch from 'working' on special units. I'm still looking for alternate ways but so far it doesn't look good 
|
Quote:
Originally Posted by TheDarkWraith
Never give up hope. I just haven't found the existing code that will get me the data I'm looking for yet. More digging around to do 
|
Couldn't you use subnet/mine's unique Id instead of their UnitType to identify them?