Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EntityWaypoint.c
Go to the documentation of this file.
4
7{
8 [Attribute("", UIWidgets.EditBox, "Related entity")]
9 private string m_sEntityName;
10 private IEntity m_Entity;
11
12 //------------------------------------------------------------------------------------------------
13 string GetEntityName()
14 {
15 return m_sEntityName;
16 }
17
18 //------------------------------------------------------------------------------------------------
19 void SetEntityName(string entityName)
20 {
21 m_sEntityName = entityName;
22 }
23
24 //------------------------------------------------------------------------------------------------
25 void SetEntity(IEntity entity)
26 {
27 m_Entity = entity;
28 }
29
30 //------------------------------------------------------------------------------------------------
32 {
33 if (m_Entity)
34 {
35 return m_Entity;
36 }
37
38 SetEntity(GetGame().GetWorld().FindEntityByName(m_sEntityName));
39 return m_Entity;
40 }
41};
42
44{
45 [Attribute("", UIWidgets.Object, "Related entity")]
46 ref SCR_AIEntityWaypointParameters m_EntityWaypointParameters;
47
48 //------------------------------------------------------------------------------------------------
49 string GetEntityName()
50 {
51 if (m_EntityWaypointParameters)
52 return m_EntityWaypointParameters.GetEntityName();
53 return "";
54 }
55
56 //------------------------------------------------------------------------------------------------
57 void SetEntityName(string entityName)
58 {
59 if (m_EntityWaypointParameters)
60 return m_EntityWaypointParameters.SetEntityName(entityName);
61 }
62
63 //------------------------------------------------------------------------------------------------
64 void SetEntity(IEntity entity)
65 {
66 if (m_EntityWaypointParameters)
67 return m_EntityWaypointParameters.SetEntity(entity);
68 }
69
70 //------------------------------------------------------------------------------------------------
72 {
73 if (m_EntityWaypointParameters)
74 {
75 return m_EntityWaypointParameters.GetEntity();
76 }
77 return null;
78 }
79};
ArmaReforgerScripted GetGame()
Definition game.c:1398
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_AIWaypoint(IEntitySource src, IEntity parent)
IEntity GetEntity()
SCR_FieldOfViewSettings Attribute