Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_QRFWaypointConfig.c
Go to the documentation of this file.
3 {
4  ANY = 1 << 16,
5 }
6 
7 class SCR_QRFWaypointConfig : ScriptAndConfig
8 {
9  [Attribute(desc: "Waypoint prefab", "{93291E72AC23930F}Prefabs/AI/Waypoints/AIWaypoint_Defend.et", category: "Waypoints")]
10  protected ResourceName m_sWPToSpawn;
11 
12  [Attribute(SCR_EQRFGroupOrderType.ANY.ToString(), UIWidgets.ComboBox, desc: "To which group type this waypoint is meant to be applied to", "", ParamEnumArray.FromEnum(SCR_EQRFGroupOrderType))]
13  protected SCR_EQRFGroupOrderType m_eGroupType;
14 
15  [Attribute("0", UIWidgets.Auto, "Offset that will be applied to the position of this WP in relation to QRF target location in direction of spawned group", "0 "+int.MAX+" 1")]
16  protected int m_iDistanceOffsetToTargetLocation;
17 
18  protected vector m_vPosition;
19 
20  //------------------------------------------------------------------------------------------------
21  ResourceName GetWaypointPrefabName()
22  {
23  return m_sWPToSpawn;
24  }
25 
26  //------------------------------------------------------------------------------------------------
28  {
29  return m_eGroupType;
30  }
31 
32  //------------------------------------------------------------------------------------------------
34  {
35  return m_iDistanceOffsetToTargetLocation;
36  }
37 
38  //------------------------------------------------------------------------------------------------
39  vector GetPosition()
40  {
41  return m_vPosition;
42  }
43 
44  //------------------------------------------------------------------------------------------------
45  // constructor
50  void SCR_QRFWaypointConfig(ResourceName wpPrefab, SCR_EQRFGroupOrderType groupType = SCR_EQRFGroupOrderType.ANY, int distanceOffset = 0, vector wpPosition = vector.Zero)
51  {
52  if (SCR_StringHelper.IsEmptyOrWhiteSpace(wpPrefab))
53  return;
54 
55  m_sWPToSpawn = wpPrefab;
56  m_eGroupType = groupType;
57  m_iDistanceOffsetToTargetLocation = distanceOffset;
58  m_vPosition = wpPosition;
59  }
60 }
SCR_QRFWaypointConfig
void SCR_QRFWaypointConfig(ResourceName wpPrefab, SCR_EQRFGroupOrderType groupType=SCR_EQRFGroupOrderType.ANY, int distanceOffset=0, vector wpPosition=vector.Zero)
Definition: SCR_QRFWaypointConfig.c:50
ANY
ANY
Definition: SCR_QRFWaypointConfig.c:2
SCR_EQRFGroupOrderType
SCR_EQRFGroupOrderType
Extension to allow for comparing orders with type of a group to which it should apply with option to ...
Definition: SCR_QRFWaypointConfig.c:2
SCR_StringHelper
Definition: SCR_StringHelper.c:1
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition: SCR_RespawnBriefingComponent.c:17
Attribute
enum SCR_EQRFGroupOrderType SCR_EQRFGroupType Attribute(desc:"Waypoint prefab", "{93291E72AC23930F}Prefabs/AI/Waypoints/AIWaypoint_Defend.et", category:"Waypoints")
Definition: SCR_QRFWaypointConfig.c:9
SCR_EQRFGroupType
SCR_EQRFGroupType
Definition: SCR_QRFGroupConfig.c:1
GetOrderType
SCR_EQRFGroupOrderType GetOrderType()
Definition: SCR_QRFWaypointConfig.c:27
GetPosition
vector GetPosition()
Definition: SCR_QRFWaypointConfig.c:39
m_vPosition
vector m_vPosition
Definition: SCR_AITalkRequest.c:23
GetDistanceOffsetToTargetLocation
int GetDistanceOffsetToTargetLocation()
Definition: SCR_QRFWaypointConfig.c:33
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180