Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
NotificationTestGeneratorEntity.c
Go to the documentation of this file.
1 [EntityEditorProps(category: "GameLib/Scripted/Generator", description: "NotificationTestGeneratorEntity", dynamicBox: true, visible: false)]
3 {
4 };
5 
7 {
8  [Attribute("")]
9  string Name;
10 
11  ref array<ref Shape> m_Shapes;
12 
13  void NotificationTestGeneratorEntity(IEntitySource src, IEntity parent)
14  {
15  m_Shapes = new array<ref Shape>();
16  SetEventMask(EntityEvent.INIT);
17  }
18 
19  override void EOnInit(IEntity owner)
20  {
21  m_Shapes = new array<ref Shape>();
22  }
23 
24  #ifdef WORKBENCH
25  protected override void OnIntersectingShapeChangedXZInternal(IEntitySource shapeEntitySrc, IEntitySource other, array<vector> mins, array<vector> maxes)
26  {
27  Print("Entity: " + Name + " intersected with " + mins.Count() + " boxes");
28  m_Shapes = new array<ref Shape>();
29  for (int i = 0; i < mins.Count(); ++i)
30  {
31  vector points[5];
32  points[0] = mins[i];
33  points[1][0] = maxes[i][0]; points[1][1] = 0; points[1][2] = mins[i][2];
34  points[2] = maxes[i];
35  points[3][0] = mins[i][0]; points[3][1] = 0; points[3][2] = maxes[i][2];
36  points[4] = mins[i];
37  m_Shapes.Insert(Shape.CreateLines(0xffdd55ff, ShapeFlags.VISIBLE | ShapeFlags.NOZBUFFER, points, 5));
38  }
39 
40  }
41  #endif
42 };
SCR_GeneratorBaseEntity
SCR_GeneratorBaseEntityClass GeneratorBaseEntityClass SCR_GeneratorBaseEntity(IEntitySource src, IEntity parent)
Definition: SCR_GeneratorBaseEntity.c:335
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
NotificationTestGeneratorEntity
Definition: NotificationTestGeneratorEntity.c:6
NotificationTestGeneratorEntityClass
Definition: NotificationTestGeneratorEntity.c:2
Attribute
NotificationTestGeneratorEntityClass Attribute
Post-process effect of scripted camera.
SCR_GeneratorBaseEntityClass
Definition: SCR_GeneratorBaseEntity.c:1
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180