Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_AISmartActionSentinelComponent.c
Go to the documentation of this file.
2 {
3 }
4 
5 enum ELeaningType
6 {
7  LEFT = -1,
8  NONE = 0,
9  RIGHT = 1,
10 }
11 
12 class SCR_AISmartActionSentinelComponent : SCR_AISmartActionComponent
13 {
14 
15  [Attribute("0 0 0", UIWidgets.EditBox, desc: "Position where AI will look from action offset (in local coords of the object entity)", params: "inf inf 0 purpose=coords space=entity")]
16  protected vector m_vLookPosition;
17 
18  [Attribute("180", UIWidgets.Coords, desc: "Range of rotation within which AI will restrict their observing")]
19  protected float m_fLookDirectionRange;
20 
21  [Attribute("0", uiwidget: UIWidgets.ComboBox, "Desired stance the AI will use upon reaching the observationpost", "", ParamEnumArray.FromEnum(ECharacterStance))]
22  protected int m_iCharacterStance;
23 
24  [Attribute("0", uiwidget: UIWidgets.CheckBox, "Whether the AI will be using binoculars during observation", "")]
25  protected bool m_bUseBinoculars;
26 
27  [Attribute("0", uiwidget: UIWidgets.ComboBox, "Whether the AI will occasionally lean to side", "", ParamEnumArray.FromEnum(ELeaningType))]
28  protected ELeaningType m_eLeaningType;
29 
30  //------------------------------------------------------------------------------------------------
32  vector GetLookPosition()
33  {
34  return m_vLookPosition;
35  }
36 
37  //------------------------------------------------------------------------------------------------
40  {
41  return m_fLookDirectionRange;
42  }
43 
44  //------------------------------------------------------------------------------------------------
47  {
48  return m_iCharacterStance;
49  }
50 
51  //------------------------------------------------------------------------------------------------
54  {
55  return m_bUseBinoculars;
56  }
57 
58  //------------------------------------------------------------------------------------------------
60  void SetUseBinoculars(bool useBinoculars)
61  {
62  m_bUseBinoculars = useBinoculars;
63  }
64 
65  //------------------------------------------------------------------------------------------------
67  ELeaningType GetLeaningType()
68  {
69  return m_eLeaningType;
70  }
71 }
GetDesiredStance
int GetDesiredStance()
Definition: SCR_AISmartActionSentinelComponent.c:46
m_iCharacterStance
protected int m_iCharacterStance
Definition: SCR_AISmartActionSentinelComponent.c:22
RIGHT
SCR_AISmartActionSentinelComponentClass RIGHT
Definition: SCR_ScriptedWidgetTooltip.c:779
ECharacterStance
ECharacterStance
Definition: ECharacterStance.c:12
SCR_AISmartActionComponent
Definition: SCR_AISmartActionComponent.c:9
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
m_bUseBinoculars
protected bool m_bUseBinoculars
Definition: SCR_AISmartActionSentinelComponent.c:25
m_eLeaningType
protected ELeaningType m_eLeaningType
Definition: SCR_AISmartActionSentinelComponent.c:28
Attribute
SCR_AISmartActionSentinelComponentClass SCR_AISmartActionComponentClass Attribute("0 0 0", UIWidgets.EditBox, desc:"Position where AI will look from action offset (in local coords of the object entity)", params:"inf inf 0 purpose=coords space=entity")] protected vector m_vLookPosition
m_fLookDirectionRange
protected float m_fLookDirectionRange
Definition: SCR_AISmartActionSentinelComponent.c:19
SCR_AISmartActionSentinelComponentClass
Definition: SCR_AISmartActionSentinelComponent.c:1
GetLookDirectionRange
float GetLookDirectionRange()
Definition: SCR_AISmartActionSentinelComponent.c:39
LEFT
SCR_AISmartActionSentinelComponentClass LEFT
Definition: SCR_ScriptedWidgetTooltip.c:777
SetUseBinoculars
void SetUseBinoculars(bool useBinoculars)
Definition: SCR_AISmartActionSentinelComponent.c:60
SCR_AISmartActionComponentClass
Definition: SCR_AISmartActionComponent.c:1
GetUseBinoculars
bool GetUseBinoculars()
Definition: SCR_AISmartActionSentinelComponent.c:53
params
Configs ServerBrowser KickDialogs params
Definition: SCR_NotificationSenderComponent.c:24
GetLookPosition
vector GetLookPosition()
Definition: SCR_AISmartActionSentinelComponent.c:32
GetLeaningType
ELeaningType GetLeaningType()
Definition: SCR_AISmartActionSentinelComponent.c:67
NONE
SCR_AISmartActionSentinelComponentClass NONE