13 if (damageComponent && damageComponent.GetState() ==
EDamageState.DESTROYED)
16 return SCR_PossessingManagerComponent.GetPlayerIdFromMainEntity(selectedEntity.GetOwner()) <= 0;
24 ChimeraCharacter character = ChimeraCharacter.Cast(selectedEntity.GetOwner());
25 if (character && character.IsInVehicle())
28 BaseWeaponManagerComponent wpnManager = BaseWeaponManagerComponent.Cast(selectedEntity.GetOwner().FindComponent(BaseWeaponManagerComponent));
32 array<IEntity> weapons = {};
33 return wpnManager.GetWeaponsList(weapons) > 0;
39 if (!CanBeShown(selectedEntity, cursorWorldPosition, 0))
42 ChimeraCharacter character = ChimeraCharacter.Cast(selectedEntity.GetOwner());
43 if (character && character.IsInVehicle())
46 IEntity owner = selectedEntity.GetOwner();
48 BaseWeaponManagerComponent wpnManager = BaseWeaponManagerComponent.Cast(owner.FindComponent(BaseWeaponManagerComponent));
49 SCR_InventoryStorageManagerComponent inventory = SCR_InventoryStorageManagerComponent.Cast(owner.FindComponent(SCR_InventoryStorageManagerComponent));
51 if (!wpnManager || !inventory)
54 array<IEntity> weapons = {};
55 wpnManager.GetWeaponsList(weapons);
57 foreach (IEntity weapon: weapons)
66 inventory.TryRemoveItemFromStorage(weapon, parentSlot.GetStorage());