Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CharacterHasConsumableItemEquippedCondition.c
Go to the documentation of this file.
1
5{
6 [Attribute(defvalue: SCR_EConsumableType.NONE.ToString(), desc: "Consumable type to be tested", uiwidget: UIWidgets.ComboBox, enumType: SCR_EConsumableType)]
7 private SCR_EConsumableType m_eConsumableType;
8
9 //------------------------------------------------------------------------------------------------
12 override bool IsAvailable(notnull SCR_AvailableActionsConditionData data)
13 {
14 IEntity item = data.GetCurrentItemEntity();
15 if (!item)
16 return GetReturnResult(false);
17
18 SCR_ConsumableItemComponent consumable = SCR_ConsumableItemComponent.Cast(item.FindComponent(SCR_ConsumableItemComponent));
19 return GetReturnResult(consumable && consumable.GetConsumableType() == m_eConsumableType);
20 }
21}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
SCR_EConsumableType
Type of consumable gadget.
Get all prefabs that have the spawner data
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
proto external Managed FindComponent(typename typeName)
A single available action condition representation.
SCR_FieldOfViewSettings Attribute