samthedagger
Warlord
- Joined
- Jul 8, 2009
- Messages
- 134
After looking at the XML, I have discerned the following possibilities for making a unit invisible.
1) Use the <Invisible> tag with either INVISIBLE_SUBMARINE or INVISIBLE_STEALTH. Units with either of these are invisible to all units except those with the tag <SeeInvisible> for the appropriate type.
2) Use the <bInvisible> tag set to 1. This appears to make the unit invisible to all other units with no exception.
First, how do I create a new invisible class? For example, could I just enter INVISIBLE_CLOAKING and it would become a new invisible class seen only by units with <SeeInvisible>INVISIBLE_CLOAKING</SeeInvisible> or do I have to define INVISIBLE_CLOAKING somewhere?
Second, suppose I want to make a unit able to see both submarines and stealth destroyers (and whatever other invisible class I care to add). What would I need to do to make that work? Do I enter the <SeeInvisible> tag once for each type or can I separate them within the tag with a comma or something?
Third, are there any other ways of making a unit invisible that I am missing?
Thanks in advance for your help!
1) Use the <Invisible> tag with either INVISIBLE_SUBMARINE or INVISIBLE_STEALTH. Units with either of these are invisible to all units except those with the tag <SeeInvisible> for the appropriate type.
2) Use the <bInvisible> tag set to 1. This appears to make the unit invisible to all other units with no exception.
First, how do I create a new invisible class? For example, could I just enter INVISIBLE_CLOAKING and it would become a new invisible class seen only by units with <SeeInvisible>INVISIBLE_CLOAKING</SeeInvisible> or do I have to define INVISIBLE_CLOAKING somewhere?
Second, suppose I want to make a unit able to see both submarines and stealth destroyers (and whatever other invisible class I care to add). What would I need to do to make that work? Do I enter the <SeeInvisible> tag once for each type or can I separate them within the tag with a comma or something?
Third, are there any other ways of making a unit invisible that I am missing?
Thanks in advance for your help!