1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

How to add or remove Invisibility

Discussion in 'CivBE - Modding Help & Mod Creation' started by Bosparan, May 19, 2016.

  1. Bosparan

    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...
     

Share This Page