Setting Units Invisible Confusion[Help Needed]

Ket

Composite Of A Composite
Joined
Jul 26, 2006
Messages
900
Location
Austin, TX
I have been trying to set some units invisible and others to see said units with no luck.

<iInvisible> seems to do almost nothing
and the tags that the sub's use seem to specificly be for other subs.

What I want to do is set the unit Naval Mines to be invisible and Minesweapers to be able to see them. Heck I can't even get the mines to go invisible.

Any assistance Appreacitated!
 
Bueler..... Bueler.... Bueler.....
 
Ket said:
I have been trying to set some units invisible and others to see said units with no luck.

<iInvisible> seems to do almost nothing
and the tags that the sub's use seem to specificly be for other subs.

What I want to do is set the unit Naval Mines to be invisible and Minesweapers to be able to see them. Heck I can't even get the mines to go invisible.

Any assistance Appreacitated!


I don't believe that it's "iInvisible", but rather "bInvisible". I'm not even sure if that's what you want, because I think that makes it always invisible.

Try adding a new invisible type (check out XML/CIV4BasicInfos.xml and look for INVISIBLE_SUBMARINE within that file and make your own using that as a guide). It would look something like:

Code:
<InvisibleInfo>
    <Type>INVISIBLE_WHATEVER</Type>
    <Description>TXT_KEY_INVISIBLE_WHATEVER</Description>
</InvisibleInfo>

Then, in Civ4UnitInfos.xml, for the unit to be invisible, use:

Code:
<Invisible>INVISIBLE_WHATEVER</Invisible>

and the unit to see it, use:

Code:
<SeeInvisible>INVISIBLE_WHATEVER</SeeInvisible>
 
Thanks Gerikes that should do it, I was going off the spy and could not figure out why he was different. Ok I'll do what you sugested that should work :)
 
Back
Top Bottom