View Single Post
Old 05-04-13, 06:26 PM   #1803
gap
Navy Seal
 
Join Date: Jan 2011
Location: CJ8937
Posts: 8,215
Downloads: 793
Uploads: 10
Default

Quote:
Originally Posted by TheDarkWraith View Post
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 View Post
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?
gap is offline   Reply With Quote