Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WeaponMuzzleChamberedCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
4 {
5  //------------------------------------------------------------------------------------------------
7  override bool IsAvailable(SCR_AvailableActionsConditionData data)
8  {
9  if (!data)
10  return false;
11 
12  BaseMuzzleComponent muzzle = data.GetCurrentMuzzle();
13  if (!muzzle)
14  return false;
15 
16  auto result = muzzle.IsCurrentBarrelChambered();
17 
18  return GetReturnResult(result);
19  }
20 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
SCR_AvailableActionCondition
A single available action condition representation.
Definition: SCR_AvailableActionsCondition.c:3
SCR_WeaponMuzzleChamberedCondition
Definition: SCR_WeaponMuzzleChamberedCondition.c:3
data
Get all prefabs that have the spawner data
Definition: SCR_EntityCatalogManagerComponent.c:305
BaseMuzzleComponent
Definition: BaseMuzzleComponent.c:12
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