Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CanItemBeInspectedCondition.c
Go to the documentation of this file.
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}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Get all prefabs that have the spawner data
A single available action condition representation.