Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_DeployableItemSearchPredicate.c
Go to the documentation of this file.
1class SCR_DeployableItemSearchPredicate : InventorySearchPredicate
2{
3 IEntity m_IgnoredItem;
4
5 //------------------------------------------------------------------------------------------------
6 // constructor
8 void SCR_DeployableItemSearchPredicate(IEntity ignoredItem = null)
9 {
10 m_IgnoredItem = ignoredItem;
11 }
12
13 //------------------------------------------------------------------------------------------------
14 override protected bool IsMatch(BaseInventoryStorageComponent storage, IEntity item, array<GenericComponent> queriedComponents, array<BaseItemAttributeData> queriedAttributes)
15 {
16 return item != m_IgnoredItem && item.FindComponent(SCR_MultiPartDeployableItemComponent) != null && item.FindComponent(SCR_DeployablePlaceableItemComponent) != null;
17 }
18}
proto external Managed FindComponent(typename typeName)
bool IsMatch(BaseInventoryStorageComponent storage, IEntity item, array< GenericComponent > queriedComponents, array< BaseItemAttributeData > queriedAttributes)