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