Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_CharacterSprintingCondition.c
Go to the documentation of this file.
1 //------------------------------------------------------------------------------------------------
8 {
9  [Attribute("0", UIWidgets.EditBox, "Minimum temporary sprinting time. Set to below zero to track persistent sprinting only.", "")]
10  protected float m_fMinimumTime;
11 
12  //------------------------------------------------------------------------------------------------
13  override bool IsAvailable(SCR_AvailableActionsConditionData data)
14  {
15  if (!data)
16  return false;
17 
18  bool result = data.GetIsCharacterSprinting();
19  if (m_fMinimumTime > 0)
20  result = result && data.GetCharacterSprintingTime() > m_fMinimumTime;
21  else if (m_fMinimumTime < 0)
22  result = result && data.GetCharacterSprintingTime() == 0;
23 
24  return GetReturnResult(result);
25  }
26 };
SCR_AvailableActionsConditionData
Definition: SCR_AvailableActionsConditionData.c:5
SCR_CharacterSprintingCondition
Definition: SCR_CharacterSprintingCondition.c:7
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