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_BoardingWaypoint.c
Go to the documentation of this file.
1
class
SCR_BoardingWaypointClass
:
SCR_AIWaypointClass
2
{
3
};
4
5
class
SCR_AIBoardingParameters
6
{
7
bool
m_bIsDriverAllowed =
true
;
8
bool
m_bIsGunnerAllowed =
true
;
9
bool
m_bIsCargoAllowed =
true
;
10
}
11
12
[
BaseContainerProps
()]
13
class
SCR_AIBoardingWaypointParameters
14
{
15
[
Attribute
(
""
,
UIWidgets
.CheckBox,
"Occupy driver"
)]
16
bool
m_bIsDriverAllowed
;
17
[
Attribute
(
""
,
UIWidgets
.CheckBox,
"Occupy gunner"
)]
18
bool
m_bIsGunnerAllowed
;
19
[
Attribute
(
""
,
UIWidgets
.CheckBox,
"Occupy cargo"
)]
20
bool
m_bIsCargoAllowed
;
21
22
private
ref
SCR_AIBoardingParameters
m_Parameters;
23
24
void
SCR_AIBoardingWaypointParameters()
25
{
26
m_Parameters =
new
SCR_AIBoardingParameters
;
27
m_Parameters.m_bIsDriverAllowed =
m_bIsDriverAllowed
;
28
m_Parameters.m_bIsGunnerAllowed =
m_bIsGunnerAllowed
;
29
m_Parameters.m_bIsCargoAllowed =
m_bIsCargoAllowed
;
30
}
31
32
//------------------------------------------------------------------------------------------------
33
SCR_AIBoardingParameters GetParameters()
34
{
35
return
m_Parameters;
36
}
37
38
//------------------------------------------------------------------------------------------------
39
void
SetParameters(
bool
driverAllowed,
bool
gunnerAllowed,
bool
cargoAllowed)
40
{
41
m_Parameters.m_bIsDriverAllowed = driverAllowed;
42
m_Parameters.m_bIsGunnerAllowed = gunnerAllowed;
43
m_Parameters.m_bIsCargoAllowed = cargoAllowed;
44
}
45
};
46
47
class
SCR_BoardingWaypoint
:
SCR_AIWaypoint
48
{
49
50
[
Attribute
(
""
,
UIWidgets
.Object,
"Waypoint parameters"
)]
51
ref SCR_AIBoardingWaypointParameters m_BoardingParameters;
52
53
//------------------------------------------------------------------------------------------------
54
SCR_AIBoardingParameters
GetAllowance()
55
{
56
if
(m_BoardingParameters)
57
return
m_BoardingParameters.GetParameters();
58
return
null;
59
}
60
61
//------------------------------------------------------------------------------------------------
62
void
SetAllowance(
bool
driverAllowed,
bool
gunnerAllowed,
bool
cargoAllowed)
63
{
64
if
(m_BoardingParameters)
65
m_BoardingParameters.SetParameters(driverAllowed, gunnerAllowed, cargoAllowed);
66
}
67
};
m_bIsCargoAllowed
bool m_bIsCargoAllowed
Definition
SCR_BoardingWaypoint.c:15
m_bIsDriverAllowed
bool m_bIsDriverAllowed
Definition
SCR_BoardingWaypoint.c:13
m_bIsGunnerAllowed
bool m_bIsGunnerAllowed
Definition
SCR_BoardingWaypoint.c:14
BaseContainerProps
SCR_BoardingWaypoint BaseContainerProps
Definition
SCR_BoardingWaypoint.c:12
SCR_AIBoardingParameters
Definition
SCR_BoardingWaypoint.c:6
SCR_AIWaypointClass
Definition
SCR_AIWaypoint.c:2
SCR_AIWaypoint::SCR_AIWaypoint
void SCR_AIWaypoint(IEntitySource src, IEntity parent)
Definition
SCR_AIWaypoint.c:16
SCR_BoardingWaypointClass
Definition
SCR_BoardingWaypoint.c:2
SCR_BoardingWaypoint
Definition
SCR_BoardingWaypoint.c:48
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
AI
Group
SCR_BoardingWaypoint.c
Generated by
1.17.0