Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SetLinkedStorageToParent.c
Go to the documentation of this file.
1 [BaseContainerProps(), BaseContainerCustomStringTitleField("Set storage as linked to parent")]
4 {
5  //------------------------------------------------------------------------------------------------
6  protected override void DelayedInit(SCR_UniversalInventoryStorageComponent inventoryStorage)
7  {
8  IEntity parent = inventoryStorage.GetOwner().GetParent();
9  if (!parent)
10  {
11  Print("'SCR_SetLinkedStorageToParent DelayedInit()' of: '" + inventoryStorage.GetOwner() + "' is trying to set itself as linked storage but it has no parent!", LogLevel.ERROR);
12  return;
13  }
14 
16  if (!parentInventoryStorage)
17  {
18  Print("'SCR_SetLinkedStorageToParent DelayedInit()' of: '" + inventoryStorage.GetOwner() + "' is trying to set itself as linked storage but parent has no SCR_UniversalInventoryStorageComponent!", LogLevel.ERROR);
19  return;
20  }
21 
22  parentInventoryStorage.AddLinkedStorage(inventoryStorage);
23  }
24 }
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_SetLinkedStorageToParent
This will try and find it's parent and add itself as a linked storage to the SCR_UniversalInventorySt...
Definition: SCR_SetLinkedStorageToParent.c:3
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