Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
NotificationTestGeneratorEntity.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/Generators", description: "NotificationTestGeneratorEntity", dynamicBox: true, visible: false)]
5
6class 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}
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
ref array< ref Shape > m_aShapes
proto void Print(void var, LogLevel level=LogLevel.NORMAL)
Prints content of variable to console/log.
LogLevel
Enum with severity of the logging message.
Definition LogLevel.c:14
ShapeFlags
Definition ShapeFlags.c:13
SCR_FieldOfViewSettings Attribute
void OnIntersectingShapeChangedXZInternal(IEntitySource shapeEntitySrc, IEntitySource other, array< vector > mins, array< vector > maxes)