Jammed Airlock - Vanilla-Expanded/VanillaExpandedFramework GitHub Wiki

<- Back

CompProperties_JammedAirlock adds doors that are initially impassable and need to be unlocked by a colonist to be usable

        public ThingDef doorToConvertTo;
        public string stringExtra;

        //PLUS all the fields from CompProperties_Interactable, which I'm not putting here!

How do I use this code?

It is a comp class, so you just add it in XML in the <comps> tag. For example, this is the airlock in VQE - Cryptoforge:

<comps>
	<li Class="VEF.Buildings.CompProperties_JammedAirlock">
		<!-- Interactable -->
		<doorToConvertTo>VQE_AncientAirlock_Large</doorToConvertTo>
		<activeTicks>1</activeTicks>
		<ticksToActivate>1800</ticksToActivate>
		<activateTexPath>UI/ForceOpenAirlock_Gizmo</activateTexPath>
		<activateLabelString>Force open...</activateLabelString>
		<activateDescString>Choose someone to force this ancient large airlock open.</activateDescString>
		<guiLabelString>Choose who should do this</guiLabelString>
		<jobString>Force this ancient large airlock open</jobString>
		<activatingStringPending>forcing ancient large airlock open</activatingStringPending>
		<activatingString>forcing ancient large airlock open: {1}s</activatingString>
		<messageCompletedString>{PAWN_nameDef} has successfully forced the ancient large airlock open.</messageCompletedString>
		<targetingParameters>
			<canTargetBuildings>false</canTargetBuildings>
			<canTargetAnimals>false</canTargetAnimals>
			<canTargetMechs>false</canTargetMechs>
			<onlyTargetControlledPawns>true</onlyTargetControlledPawns>
		</targetingParameters>
		<stringExtra>VQE_AirlockJammed</stringExtra>
	</li>
</comps>
⚠️ **GitHub.com Fallback** ⚠️