Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_GetLinkedStorageChildren.c
Go to the documentation of this file.
1
2[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_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
class SCR_HitZoneGroupNameHolder BaseContainerCustomStringTitleField("USE INHERITED VERSION ONLY!")
void SCR_UniversalInventoryStorageComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
proto external Managed FindComponent(typename typeName)
proto external IEntity GetChildren()
This will add all children as linked storages. Use SCR_SetLinkedStorageToParent if you know the exact...
override void DelayedInit(SCR_UniversalInventoryStorageComponent inventoryStorage)