Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SendInfoMessage.c
Go to the documentation of this file.
1 //---------------------------------------------------------------------------------------
2 // Generated from class: SCR_AIMessage_Target
4 {
5  protected static ref TStringArray _s_aVarsIn =
6  {
7  SCR_AISendMessageGenerated.PORT_RECEIVER,
8  "TargetInfo"
9  };
10  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
11 
12  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
13  {
14  AIAgent receiver = GetReceiverAgent(owner);
16 
17  msg.SetText(m_sText);
18 
19  GetVariableIn("TargetInfo", msg.m_TargetInfo);
20 
21  if (SendMessage(owner, receiver, msg))
22  return ENodeResult.SUCCESS;
23  else
24  return ENodeResult.FAIL;
25  }
26 
27  override bool VisibleInPalette() { return true; }
28 }
29 
30 //---------------------------------------------------------------------------------------
31 // Generated from class: SCR_AIMessage_NoAmmo
32 class SCR_AISendInfoMessage_NoAmmo : SCR_AISendMessageGenerated
33 {
34  protected static ref TStringArray _s_aVarsIn =
35  {
36  SCR_AISendMessageGenerated.PORT_RECEIVER,
37  "EntityToSupply",
38  "MagazineWellType"
39  };
40  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
41 
42  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
43  {
44  AIAgent receiver = GetReceiverAgent(owner);
46 
47  msg.SetText(m_sText);
48 
49  GetVariableIn("EntityToSupply", msg.m_entityToSupply);
50 
51  GetVariableIn("MagazineWellType", msg.m_MagazineWell);
52 
53  if (SendMessage(owner, receiver, msg))
54  return ENodeResult.SUCCESS;
55  else
56  return ENodeResult.FAIL;
57  }
58 
59  override bool VisibleInPalette() { return true; }
60 }
61 
62 //---------------------------------------------------------------------------------------
63 // Generated from class: SCR_AIMessage_UnderFire
65 {
66  protected static ref TStringArray _s_aVarsIn =
67  {
68  SCR_AISendMessageGenerated.PORT_RECEIVER,
69  "Position"
70  };
71  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
72 
73  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
74  {
75  AIAgent receiver = GetReceiverAgent(owner);
77 
78  msg.SetText(m_sText);
79 
80  GetVariableIn("Position", msg.m_vPosition);
81 
82  if (SendMessage(owner, receiver, msg))
83  return ENodeResult.SUCCESS;
84  else
85  return ENodeResult.FAIL;
86  }
87 
88  override bool VisibleInPalette() { return true; }
89 }
90 
91 //---------------------------------------------------------------------------------------
92 // Generated from class: SCR_AIMessage_FoundCorpse
93 class SCR_AISendInfoMessage_FoundCorpse : SCR_AISendMessageGenerated
94 {
95  protected static ref TStringArray _s_aVarsIn =
96  {
97  SCR_AISendMessageGenerated.PORT_RECEIVER,
98  "Position"
99  };
100  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
101 
102  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
103  {
104  AIAgent receiver = GetReceiverAgent(owner);
106 
107  msg.SetText(m_sText);
108 
109  GetVariableIn("Position", msg.m_vPosition);
110 
111  if (SendMessage(owner, receiver, msg))
112  return ENodeResult.SUCCESS;
113  else
114  return ENodeResult.FAIL;
115  }
116 
117  override bool VisibleInPalette() { return true; }
118 }
119 
120 //---------------------------------------------------------------------------------------
121 // Generated from class: SCR_AIMessage_Wounded
123 {
124  protected static ref TStringArray _s_aVarsIn =
125  {
126  SCR_AISendMessageGenerated.PORT_RECEIVER,
127  "Position",
128  "WoundedEntity"
129  };
130  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
131 
132  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
133  {
134  AIAgent receiver = GetReceiverAgent(owner);
136 
137  msg.SetText(m_sText);
138 
139  GetVariableIn("Position", msg.m_vPosition);
140 
141  GetVariableIn("WoundedEntity", msg.m_WoundedEntity);
142 
143  if (SendMessage(owner, receiver, msg))
144  return ENodeResult.SUCCESS;
145  else
146  return ENodeResult.FAIL;
147  }
148 
149  override bool VisibleInPalette() { return true; }
150 }
151 
152 //---------------------------------------------------------------------------------------
153 // Generated from class: SCR_AIMessage_SitRep
154 class SCR_AISendInfoMessage_SitRep : SCR_AISendMessageGenerated
155 {
156  protected static ref TStringArray _s_aVarsIn =
157  {
158  SCR_AISendMessageGenerated.PORT_RECEIVER
159  };
160  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
161 
162  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
163  {
164  AIAgent receiver = GetReceiverAgent(owner);
166 
167  msg.SetText(m_sText);
168 
169  if (SendMessage(owner, receiver, msg))
170  return ENodeResult.SUCCESS;
171  else
172  return ENodeResult.FAIL;
173  }
174 
175  override bool VisibleInPalette() { return true; }
176 }
177 
178 //---------------------------------------------------------------------------------------
179 // Generated from class: SCR_AIMessage_HealFailed
181 {
182  protected static ref TStringArray _s_aVarsIn =
183  {
184  SCR_AISendMessageGenerated.PORT_RECEIVER,
185  "TargetEntity"
186  };
187  override TStringArray GetVariablesIn() { return _s_aVarsIn; }
188 
189  override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
190  {
191  AIAgent receiver = GetReceiverAgent(owner);
193 
194  msg.SetText(m_sText);
195 
196  GetVariableIn("TargetEntity", msg.m_TargetEntity);
197 
198  if (SendMessage(owner, receiver, msg))
199  return ENodeResult.SUCCESS;
200  else
201  return ENodeResult.FAIL;
202  }
203 
204  override bool VisibleInPalette() { return true; }
205 }
206 
GetVariablesIn
override TStringArray GetVariablesIn()
Definition: SendInfoMessage.c:40
SCR_AIMessage_UnderFire
Definition: SCR_AIMessage.c:162
VisibleInPalette
override bool VisibleInPalette()
Definition: SendInfoMessage.c:59
_s_aVarsIn
SCR_AISendInfoMessage_Target _s_aVarsIn
Definition: SendOrder.c:47
SCR_AIMessage_Target
Definition: SCR_AIMessage.c:108
SCR_AISendInfoMessage_Wounded
Definition: SendInfoMessage.c:122
SCR_AISendInfoMessage_HealFailed
Definition: SendInfoMessage.c:180
SCR_AIMessage_Wounded
Definition: SCR_AIMessage.c:202
SCR_AISendInfoMessage_Target
Definition: SendInfoMessage.c:3
SendMessage
void SendMessage(AICommunicationComponent comms, SCR_AIActivityBase activity, vector position, float delay)
Definition: SCR_AIActivitySmokeCoverFeature.c:77
EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition: SendInfoMessage.c:42
SCR_AIMessage_FoundCorpse
Definition: SCR_AIMessage.c:182
SCR_AISendMessageGenerated
Definition: SCR_AISendMessageGenerated.c:1
SCR_AIMessage_HealFailed
Definition: SCR_AIMessage.c:251
SCR_AISendInfoMessage_UnderFire
Definition: SendInfoMessage.c:64
SCR_AIMessage_SitRep
Definition: SCR_AIMessage.c:230
SCR_AIMessage_NoAmmo
Definition: SCR_AIMessage.c:131
m_sText
class SCR_BaseEditorAttribute m_sText