Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
NotificationTestGeneratorEntity.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/Generators"
, description:
"NotificationTestGeneratorEntity"
, dynamicBox:
true
, visible:
false
)]
2
class
NotificationTestGeneratorEntityClass
:
SCR_GeneratorBaseEntityClass
3
{
4
}
5
6
class
NotificationTestGeneratorEntity : SCR_GeneratorBaseEntity
7
{
8
[
Attribute
()]
9
protected
string
Name;
10
11
#ifdef WORKBENCH
12
protected
ref array<ref Shape>
m_aShapes
;
13
14
//------------------------------------------------------------------------------------------------
15
protected
override
void
OnIntersectingShapeChangedXZInternal
(
IEntitySource
shapeEntitySrc,
IEntitySource
other, array<vector> mins, array<vector> maxes)
16
{
17
Print
(
"[NotificationTestGeneratorEntity] Entity \""
+ Name +
"\" intersected with "
+ mins.Count() +
" boxes"
,
LogLevel
.NORMAL);
18
m_aShapes
= {};
19
for
(
int
i; i < mins.Count(); ++i)
20
{
21
vector points[5];
22
23
points[0] = mins[i];
24
25
points[1][0] = maxes[i][0];
26
points[1][1] = 0;
27
points[1][2] = mins[i][2];
28
29
points[2] = maxes[i];
30
31
points[3][0] = mins[i][0];
32
points[3][1] = 0;
33
points[3][2] = maxes[i][2];
34
35
points[4] = mins[i];
36
37
m_aShapes
.Insert(Shape.CreateLines(0xFFDD55FF,
ShapeFlags
.VISIBLE |
ShapeFlags
.NOZBUFFER, points, 5));
38
}
39
}
40
#endif
// WORKBENCH
41
}
EntityEditorProps
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
Definition
SCR_CompassComponent.c:10
m_aShapes
ref array< ref Shape > m_aShapes
Definition
SCR_PlayerControllerCommandingComponent.c:32
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntitySource
Definition
IEntitySource.c:13
NotificationTestGeneratorEntityClass
Definition
NotificationTestGeneratorEntity.c:3
SCR_GeneratorBaseEntityClass
Definition
SCR_GeneratorBaseEntity.c:2
Print
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
LogLevel
Enum with severity of the logging message.
Definition
LogLevel.c:14
ShapeFlags
ShapeFlags
Definition
ShapeFlags.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
OnIntersectingShapeChangedXZInternal
void OnIntersectingShapeChangedXZInternal(IEntitySource shapeEntitySrc, IEntitySource other, array< vector > mins, array< vector > maxes)
scripts
Game
Generators
NotificationTestGeneratorEntity.c
Generated by
1.17.0