Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_CharacterHasConsumableItemEquippedCondition.c
Go to the documentation of this file.
1
3
[
BaseContainerProps
()]
4
class
SCR_CharacterHasConsumableItemEquippedCondition
:
SCR_AvailableActionCondition
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
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_EConsumableType
SCR_EConsumableType
Type of consumable gadget.
Definition
SCR_ConsumableEffectBase.c:3
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_AvailableActionCondition
A single available action condition representation.
Definition
SCR_AvailableActionCondition.c:4
SCR_AvailableActionCondition::GetReturnResult
bool GetReturnResult(bool desiredResult)
Definition
SCR_AvailableActionCondition.c:22
SCR_AvailableActionsConditionData
Definition
SCR_AvailableActionsConditionData.c:6
SCR_CharacterHasConsumableItemEquippedCondition
Definition
SCR_CharacterHasConsumableItemEquippedCondition.c:5
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Character
SCR_CharacterHasConsumableItemEquippedCondition.c
Generated by
1.17.0