Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_EntityWaypoint.c
Go to the documentation of this file.
1
class
SCR_EntityWaypointClass
:
SCR_AIWaypointClass
2
{
3
};
4
5
[
BaseContainerProps
()]
6
class
SCR_AIEntityWaypointParameters
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
//------------------------------------------------------------------------------------------------
31
IEntity
GetEntity
()
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
43
class
SCR_EntityWaypoint
:
SCR_AIWaypoint
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
//------------------------------------------------------------------------------------------------
71
IEntity
GetEntity
()
72
{
73
if
(m_EntityWaypointParameters)
74
{
75
return
m_EntityWaypointParameters.GetEntity();
76
}
77
return
null;
78
}
79
};
GetGame
ArmaReforgerScripted GetGame()
Definition
game.c:1398
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
IEntity
Definition
IEntity.c:13
SCR_AIEntityWaypointParameters
Definition
SCR_EntityWaypoint.c:7
SCR_AIWaypointClass
Definition
SCR_AIWaypoint.c:2
SCR_AIWaypoint::SCR_AIWaypoint
void SCR_AIWaypoint(IEntitySource src, IEntity parent)
Definition
SCR_AIWaypoint.c:16
SCR_EntityWaypointClass
Definition
SCR_EntityWaypoint.c:2
SCR_EntityWaypoint
Definition
SCR_EntityWaypoint.c:44
UIWidgets
Definition
attributes.c:40
GetEntity
IEntity GetEntity()
Definition
SCR_QuickslotBaseContainer.c:34
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
AI
Group
SCR_EntityWaypoint.c
Generated by
1.17.0