How to add or remove Invisibility

Bosparan

Chieftain
Joined
Oct 27, 2014
Messages
23
Hello,

I'm trying to enable and disable the invisibility-ability of individual submarines on the fly. I've given up trying to make that happen on the xml side, since by now its a stat on the units table and there simply are no methods implemented to change that property for individual units.

So I've tried editing the submarines directly using Lua, but couldn't figure out how to make it work.
Any ideas?

Cheers,
Bosparan

PS:
Specifically, I'm trying to add promotions for submarines, and one path should give the player a way to trade invisibility for substantial boni. Then I also added a promotion that allows it to carry a plane, and whenever a fighter launches, the submarine should be detected...
 
Top Bottom