Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EquipmentStorageComponent.c
Go to the documentation of this file.
2{
3}
4
6class 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)
26 return false;
27
28 gadgetComp.OnSlotOccludedStateChanged(occluded);
29
30 //return false to let the slot handle occlusion if the gadget can be visible
31 //return true if it is slot which is not visualized, dont do any visibility changes (keep invis)
32 return !gadgetComp.IsVisibleEquipped();
33 }
34
35 return false;
36 }
37}
proto external Managed FindComponent(typename typeName)
SCR_EquipmentStorageComponentClass EquipmentStorageComponentClass ShouldPreviewAttachedItems()
Equipment storage are slots which are part of their parent entity but not taking up the standard carg...