Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_MirrorLinkStorageToParent.c
Go to the documentation of this file.
1 [BaseContainerProps(), BaseContainerCustomStringTitleField("Mirror link storage to parent")]
5 {
6  //------------------------------------------------------------------------------------------------
7  protected override void DelayedInit(SCR_UniversalInventoryStorageComponent inventoryStorage)
8  {
9  IEntity parent = inventoryStorage.GetOwner().GetParent();
10  if (!parent)
11  {
12  Print("'SCR_MirrorLinkStorageToParent DelayedInit()' of: '" + inventoryStorage.GetOwner() + "' is trying to set itself as linked storage but it has no parent!", LogLevel.ERROR);
13  return;
14  }
15 
17  if (!parentInventoryStorage)
18  {
19  Print("'SCR_MirrorLinkStorageToParent DelayedInit()' of: '" + inventoryStorage.GetOwner() + "' is trying to set itself as linked storage but parent has no SCR_UniversalInventoryStorageComponent!", LogLevel.ERROR);
20  return;
21  }
22 
23  //~ Link self to parent
24  parentInventoryStorage.AddLinkedStorage(inventoryStorage);
25 
26  //~ Link parent to self
27  inventoryStorage.AddLinkedStorage(parentInventoryStorage);
28  }
29 }
SCR_UniversalInventoryStorageComponent
void SCR_UniversalInventoryStorageComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition: SCR_UniversalInventoryStorageComponent.c:259
BaseContainerCustomStringTitleField
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERENT VERSION ONLY!")
Definition: SCR_HitZoneGroupNameHolder.c:27
SCR_BaseLinkedStorageLogic
Definition: SCR_BaseLinkedStorageLogic.c:2
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468