Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_GetLinkedStorageChildren.c
Go to the documentation of this file.
1 [BaseContainerProps(), BaseContainerCustomStringTitleField("Get all children storages and set as linked")]
4 {
5  //------------------------------------------------------------------------------------------------
6  protected override void DelayedInit(SCR_UniversalInventoryStorageComponent inventoryStorage)
7  {
8  IEntity child = inventoryStorage.GetOwner().GetChildren();
9  BaseInventoryStorageComponent storage;
10 
11  while (child)
12  {
13  storage = BaseInventoryStorageComponent.Cast(child.FindComponent(BaseInventoryStorageComponent));
14  if (storage && storage != inventoryStorage)
15  inventoryStorage.AddLinkedStorage(storage);
16  }
17  }
18 }
SCR_GetLinkedStorageChildren
This will add all children as linked storages. Use SCR_SetLinkedStorageToParent if you know the exact...
Definition: SCR_GetLinkedStorageChildren.c:3
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