Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SmartActionWaypoint.c
Go to the documentation of this file.
2 {
3 };
5 {
6  [Attribute("", UIWidgets.EditBox, "Static reference to entity with smart action")]
7  string m_sStaticEntityName;
8 
9  [Attribute("", UIWidgets.EditBox, "Tag of the smart action")]
10  string m_sSmartActionTag;
11 
12  IEntity m_SmartActionEntity;
13 
14  void GetSmartActionEntity(out IEntity smartActionEntity, out string smartActionTag)
15  {
16  if (m_SmartActionEntity)
17  {
18  smartActionEntity = m_SmartActionEntity;
19  }
20  else
21  {
22  IEntity ent = GetGame().GetWorld().FindEntityByName(m_sStaticEntityName);
23  if (ent)
24  smartActionEntity = ent;
25  }
26  if (m_sSmartActionTag == string.Empty)
27  Debug.Error("Unspecified smart action tag");
28  smartActionTag = m_sSmartActionTag;
29  }
30 
31  void SetSmartActionEntity(IEntity entityWithSmartAction, string smartActionTag)
32  {
33  m_SmartActionEntity = entityWithSmartAction;
34  m_sSmartActionTag = smartActionTag;
35  }
36 };
SCR_AIWaypointClass
Definition: SCR_AIWaypoint.c:1
m_sSmartActionTag
string m_sSmartActionTag
Definition: SendGoalMessage.c:929
GetGame
ArmaReforgerScripted GetGame()
Definition: game.c:1424
SCR_AIWaypoint
Definition: SCR_AIWaypoint.c:5
SCR_SmartActionWaypointClass
Definition: SCR_SmartActionWaypoint.c:1
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_SmartActionWaypoint
Definition: SCR_SmartActionWaypoint.c:4