ztz2019 1 Posted June 20, 2016 I searched opencontain.xsd and garrisoncontain.xsd, I found only the garrisoncontain.xsd has an attribute "immunetoclearbuildingattacks", so how transportcontain could immune clearbuildingattacks? And I wanna make an structure that with two status: one can let passengers attack but can't proof flame or grenade, and another can't attack but immune clearattack. Anyone can teach me? With KW enhanced statusbitsupgrade module function, I can control can_attack or not by applytocontained handle, but how to change immune or not? Share this post Link to post
Stygs 25 Posted June 20, 2016 Isnt TransportContain immun by default? As far as I remember, you could never clear out an APC with flamethrowers. Share this post Link to post
Ravendark 46 Posted June 20, 2016 (edited) Iirc the following decides if you can hurt units inside a garrison slot: ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox If INCLOSED, the unit takes no damage from outside sources. Edited June 20, 2016 by Ravendark Share this post Link to post
ztz2019 1 Posted June 20, 2016 Iirc the following decides if you can hurt units inside a garrison slot: ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox If INCLOSED, the unit takes no damage from outside sources. So just clean enclosed status is ok to change immune? Share this post Link to post
someguy11 0 Posted June 25, 2016 (edited) Iirc the following decides if you can hurt units inside a garrison slot: ObjectStatusOfContained="UNSELECTABLE ENCLOSED CAN_ATTACK" from the APC ObjectStatusOfContained="UNSELECTABLE CAN_ATTACK" from the gdi foxhole/pillbox If INCLOSED, the unit takes no damage from outside sources. I've just tried that, it doesn't work; I believe it has to do with the HordeGarrisonContain & HordeTransportContain modules Edited June 25, 2016 by someguy11 Share this post Link to post
Ravendark 46 Posted June 25, 2016 Idd my mistake, thought that did the trick....could've sworn i used that way at one time or another. Adding ImmuneToClearBuildingAttacks="true" does seem to work. tested this on the gdi diginbuilding. Share this post Link to post
Ravendark 46 Posted June 25, 2016 As for getting 2 different garrison buildings, you can always use a replaceself upgrade, one into a fire+clear and another into no-fire+no-clear. You could also try to add <xs:element name="UpgradeRequired" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="UpgradeForbidden" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" /> to the hordgarrisoncontain schematic...iirc the opencontain inheritcs from the updatemodule which excepts gamedpendancy. I use this in my jetaiupdate to switch between orca like flight and firehawk like flight. You might be able to trigger the hordegarrison contain module like this aswell. Needs testing, haven't tried this with that module. Share this post Link to post
ztz2019 1 Posted June 25, 2016 As for getting 2 different garrison buildings, you can always use a replaceself upgrade, one into a fire+clear and another into no-fire+no-clear. You could also try to add <xs:element name="UpgradeRequired" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" /> <xs:element name="UpgradeForbidden" type="UpgradeTemplateRef" minOccurs="0" maxOccurs="unbounded" /> to the hordgarrisoncontain schematic...iirc the opencontain inheritcs from the updatemodule which excepts gamedpendancy. I use this in my jetaiupdate to switch between orca like flight and firehawk like flight. You might be able to trigger the hordegarrison contain module like this aswell. Needs testing, haven't tried this with that module. How to avoid contained passenger removed when building replace? Share this post Link to post