5 class SCR_CampaignMHQLockComponent : SCR_BaseLockComponent
16 SlotManagerComponent slotManager = SlotManagerComponent.Cast(
GetOwner().FindComponent(SlotManagerComponent));
21 array<EntitySlotInfo> slots = {};
22 slotManager.GetSlotInfos(slots);
29 IEntity truckBed = slot.GetAttachedEntity();
34 m_MHQComponent = SCR_CampaignMobileAssemblyComponent.Cast(truckBed.FindComponent(SCR_CampaignMobileAssemblyComponent));
48 if (comp && comp.IsDeployed())
49 return "#AR-Campaign_MobileAssemblyDeployed-UC";
51 return super.GetCannotPerformReason(user);
55 override bool IsLocked(IEntity user, BaseCompartmentSlot compartmentSlot)
57 if (super.IsLocked(user, compartmentSlot))
63 return comp.IsDeployed();