Arma Reforger Explorer
1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CharacterHasConsumableEquippedCondition.c
Go to the documentation of this file.
1
//------------------------------------------------------------------------------------------------
4
[
BaseContainerProps
()]
5
class
SCR_CharacterHasConsumableItemEquippedCondition
:
SCR_AvailableActionCondition
6
{
7
[
Attribute
(
"0"
, UIWidgets.ComboBox,
"Consumable type to be tested"
,
""
, ParamEnumArray.FromEnum(
SCR_EConsumableType
) )]
8
private
SCR_EConsumableType
m_eConsumableType;
9
10
//------------------------------------------------------------------------------------------------
13
override
bool
IsAvailable(
SCR_AvailableActionsConditionData
data
)
14
{
15
if
(!
data
)
16
return
false
;
17
18
IEntity item =
data
.GetCurrentItemEntity();
19
if
(!item)
20
return
GetReturnResult(
false
);
21
22
SCR_ConsumableItemComponent consumable = SCR_ConsumableItemComponent.Cast(item.FindComponent(SCR_ConsumableItemComponent));
23
bool
result = consumable && consumable.GetConsumableType() == m_eConsumableType;
24
25
return
GetReturnResult(result);
26
}
27
};
SCR_EConsumableType
SCR_EConsumableType
Type of consumable gadget.
Definition:
SCR_ConsumableEffectBase.c:2
SCR_AvailableActionsConditionData
Definition:
SCR_AvailableActionsConditionData.c:5
SCR_CharacterHasConsumableItemEquippedCondition
Definition:
SCR_CharacterHasConsumableEquippedCondition.c:5
SCR_AvailableActionCondition
A single available action condition representation.
Definition:
SCR_AvailableActionsCondition.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
data
Get all prefabs that have the spawner data
Definition:
SCR_EntityCatalogManagerComponent.c:305
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
scripts_Arma_Reforger_v1.1.0.42
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Character
SCR_CharacterHasConsumableEquippedCondition.c
Generated by
1.8.17