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.CanDeployBeShown(user);
17 override void PerformAction(IEntity pOwnerEntity, IEntity pUserEntity)
19 if (!m_DeployableItemComp || !m_RplComp || m_RplComp.IsProxy())
22 m_DeployableItemComp.Deploy(pUserEntity);
26 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
32 m_DeployableItemComp = SCR_BaseDeployableInventoryItemComponent.Cast(owner.FindComponent(SCR_BaseDeployableInventoryItemComponent));
33 m_RplComp = RplComponent.Cast(owner.FindComponent(RplComponent));