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_AIDrawDebugVector.c
Go to the documentation of this file.
1
class
SCR_AIDrawDebugVector
:
AITaskScripted
2
{
3
static
const
string
PORT_POS_START =
"StartPosIn"
;
4
static
const
string
PORT_POS_END =
"EndPosIn"
;
5
6
ref
Shape
sphere;
7
ref
Shape
arrow;
8
9
//------------------------------------------------------------------------------------------------
10
protected
static
ref
TStringArray
s_aVarsIn
= {
11
PORT_POS_START,
12
PORT_POS_END
13
};
14
override
TStringArray
GetVariablesIn
()
15
{
16
return
s_aVarsIn
;
17
}
18
19
//------------------------------------------------------------------------------------------------
20
static
override
bool
VisibleInPalette
()
21
{
22
return
true
;
23
}
24
25
//------------------------------------------------------------------------------------------------
26
override
ENodeResult
EOnTaskSimulate
(AIAgent owner,
float
dt)
27
{
28
#ifdef WORKBENCH
29
if
(
DiagMenu
.GetBool(
SCR_DebugMenuID
.DEBUGUI_AI_SHOW_DEBUG_SHAPES))
30
{
31
vector
posFrom,posTo;
32
33
GetVariableIn
(PORT_POS_START, posFrom);
34
GetVariableIn
(PORT_POS_END, posTo);
35
36
arrow =
Shape
.CreateArrow(posFrom, posTo, 0.2,
ARGB
(100,255,0,0), 0);
37
sphere =
Shape
.CreateSphere(
ARGB
(100,255,0,0),
ShapeFlags
.TRANSP |
ShapeFlags
.NOOUTLINE, posFrom, 0.05);
38
}
39
#endif
40
return
ENodeResult
.SUCCESS;
41
}
42
43
//------------------------------------------------------------------------------------------------
44
protected
static
override
string
GetOnHoverDescription
()
45
{
46
return
"Draws a vector from Start to End"
;
47
}
48
};
SCR_DebugMenuID
SCR_DebugMenuID
This enum contains all IDs for DiagMenu entries added in script.
Definition
DebugMenuID.c:4
AITaskScripted
Definition
AITaskScripted.c:13
DiagMenu
Diagnostic and developer menu system.
Definition
DiagMenu.c:18
Node::GetVariableIn
proto bool GetVariableIn(string name, out void val)
SCR_AIDrawDebugVector
Definition
SCR_AIDrawDebugVector.c:2
SCR_AIDrawDebugVector::VisibleInPalette
static override bool VisibleInPalette()
Definition
SCR_AIDrawDebugVector.c:20
SCR_AIDrawDebugVector::s_aVarsIn
static ref TStringArray s_aVarsIn
Definition
SCR_AIDrawDebugVector.c:10
SCR_AIDrawDebugVector::EOnTaskSimulate
override ENodeResult EOnTaskSimulate(AIAgent owner, float dt)
Definition
SCR_AIDrawDebugVector.c:26
SCR_AIDrawDebugVector::GetVariablesIn
override TStringArray GetVariablesIn()
Definition
SCR_AIDrawDebugVector.c:14
SCR_AIDrawDebugVector::GetOnHoverDescription
static override string GetOnHoverDescription()
Definition
SCR_AIDrawDebugVector.c:44
Shape
Instance of created debug visualizer.
Definition
Shape.c:14
vector
Definition
vector.c:13
ENodeResult
ENodeResult
Definition
ENodeResult.c:13
ShapeFlags
ShapeFlags
Definition
ShapeFlags.c:13
TStringArray
array< string > TStringArray
Definition
Types.c:385
ARGB
proto int ARGB(int a, int r, int g, int b)
scripts
Game
AI
ScriptedNodes
Debug
SCR_AIDrawDebugVector.c
Generated by
1.17.0