[HELP] Stealth/Invisibility Detection

aokces

Flanking III Submarine
Joined
Aug 17, 2005
Messages
116
Location
California
How can I modify a unit so that it can detect BOTH stealth and invisible units? (I have the stealth destroyer in mind)

In the unitinfo.xml it reads

<SeeInvisible>INVISIBLE_STEALTH</SeeInvisible>

but I don't think I can add a second

<SeeInvisible>INVISIBLE_SUBMARINE</SeeInvisible>

to it correctly. Or am I suppose to edit another XML file? Or maybe change the settings so that a unit that can detect stealth can also inherently detect subs?

Thanks!
 
for my Ultimate Ranged Combat Mod I have been strugling with this problem too.

For the moment I have succesfully managed to seperate stealth (submarine) detection range from normal visibility range. This allows me to limit the submarine detection range by destroyers to one while increasing there surface detection range.

For the desire to implement multple stealth types I can tell is that each plot contains an 2 dimentional array which for each team stores all visible invisible stealth types. The sollution would therefore to call the procedure which is responsible for unit revealing, twise
, each for every stealth type, and in the procedure which allows a unit to be revealed by an team, to do 2 checks instead of 1.
 
Back
Top Bottom