3 protected SCR_BaseDeployableInventoryItemComponent m_DeployableItemComp;
5 protected RplComponent m_RplComp;
8 override bool CanBeShownScript(IEntity user)
10 if (!m_DeployableItemComp)
13 return m_DeployableItemComp.CanDismantleBeShown(user);
17 override bool CanBePerformedScript(IEntity user)
23 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
25 if (!m_DeployableItemComp || !m_RplComp || m_RplComp.IsProxy())
28 m_DeployableItemComp.Dismantle(pUserEntity);
32 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
38 m_DeployableItemComp = SCR_BaseDeployableInventoryItemComponent.Cast(owner.FindComponent(SCR_BaseDeployableInventoryItemComponent));
39 m_RplComp = RplComponent.Cast(owner.FindComponent(RplComponent));