5 override bool CanBeShownScript(IEntity user)
7 if (!m_WeaponComponent)
10 CharacterControllerComponent charComp = CharacterControllerComponent.Cast(user.FindComponent(CharacterControllerComponent));
11 return charComp.GetInspect();
14 override void Init(IEntity pOwnerEntity, GenericComponent pManagerComponent)
16 m_WeaponComponent = WeaponComponent.Cast(pOwnerEntity.FindComponent(WeaponComponent));
18 if (!m_WeaponComponent)
20 IEntity parent = pOwnerEntity.GetParent();
23 m_WeaponComponent = WeaponComponent.Cast(parent.FindComponent(WeaponComponent));
24 if (m_WeaponComponent)
27 parent = parent.GetParent();