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_CanItemBeInspectedCondition.c
Go to the documentation of this file.
1
[
BaseContainerProps
()]
2
class
SCR_CanItemBeInspectedCondition
:
SCR_AvailableActionCondition
3
{
4
//------------------------------------------------------------------------------------------------
6
override
bool
IsAvailable(notnull
SCR_AvailableActionsConditionData
data
)
7
{
8
IEntity
item =
data
.GetCurrentItemEntity();
9
if
(!item)
//if player is not holding a gadget then check if he is holding a weapon
10
{
11
item =
data
.GetCurrentWeaponEntity();
12
if
(!item)
13
return
GetReturnResult
(
false
);
14
}
15
16
CharacterControllerComponent controller =
data
.GetCharacterController();
17
if
(!controller)
18
return
GetReturnResult
(
false
);
19
20
return
GetReturnResult
(controller.CanInspect(item));
21
}
22
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
data
Get all prefabs that have the spawner data
Definition
SCR_EntityCatalogManagerComponent.c:320
IEntity
Definition
IEntity.c:13
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_CanItemBeInspectedCondition
Definition
SCR_CanItemBeInspectedCondition.c:3
scripts
Game
UI
HUD
AvailableActions
Conditions
Game
Character
SCR_CanItemBeInspectedCondition.c
Generated by
1.17.0