Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_EquipmentStorageComponent.c
Go to the documentation of this file.
1 class SCR_EquipmentStorageComponentClass: EquipmentStorageComponentClass
2 {
3 }
4 
6 class SCR_EquipmentStorageComponent : EquipmentStorageComponent
7 {
8  //------------------------------------------------------------------------------------------------
10  override protected bool ShouldPreviewAttachedItems()
11  {
12  return false;
13  }
14 }
15 
17 {
18  //------------------------------------------------------------------------------------------------
19  override protected bool OnOccludedStateChanged(bool occluded)
20  {
21  IEntity ent = GetAttachedEntity();
22  if (ent)
23  {
24  SCR_GadgetComponent gadgetComp = SCR_GadgetComponent.Cast( ent.FindComponent(SCR_GadgetComponent) );
25  if (gadgetComp && gadgetComp.IsVisibleEquipped())
26  return false; // let the slot handle occlusion if the gadget can be visible
27  else
28  return true; // if it is slot which is not visualized, dont do any visibility changes (keep invis)
29  }
30 
31  return false;
32  }
33 }
EquipmentStorageSlot
Definition: EquipmentStorageSlot.c:7
SCR_EquipmentStorageComponentClass
Definition: SCR_EquipmentStorageComponent.c:1
GetAttachedEntity
proto external IEntity GetAttachedEntity()
Returns the current attached entity.
ShouldPreviewAttachedItems
SCR_EquipmentStorageComponentClass EquipmentStorageComponentClass ShouldPreviewAttachedItems()
Equipment storage are slots which are part of their parent entity but not taking up the standard carg...
Definition: SCR_EquipmentStorageComponent.c:10
SCR_EquipmentStorageSlot
Definition: SCR_EquipmentStorageComponent.c:16