Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_CleanSweepArea.c
Go to the documentation of this file.
1[EntityEditorProps(category: "GameScripted/CleanSweep", description: "This is clean sweep area entity.", color: "0 0 255 255")]
2class SCR_CleanSweepAreaClass : GenericEntityClass
3{
4}
5
7{
8 [Attribute(defvalue: "400", desc: "How many groups are spawned in the location")]
9 float m_Range;
10
11 [Attribute(defvalue: "0", desc: "Can this location be selected in the mission")]
12 bool m_Active;
13
14 protected static ref array<SCR_CleanSweepArea> s_aInstances = {};
15
16 //------------------------------------------------------------------------------------------------
17 static array<SCR_CleanSweepArea> GetInstances()
18 {
19 return SCR_ArrayHelperT<SCR_CleanSweepArea>.GetCopy(s_aInstances);
20 }
21
22#ifdef WORKBENCH
23 //------------------------------------------------------------------------------------------------
24 protected override void _WB_AfterWorldUpdate(float timeSlice)
25 {
26 int color;
27 if (m_Active)
28 color = 0x8000FF00;
29 else
30 color = 0x80000000;
31
32 Shape.CreateSphere(color, ShapeFlags.ONCE | ShapeFlags.DOUBLESIDE | ShapeFlags.TRANSP, GetOrigin(), m_Range);
33 }
34#endif
35
36 //------------------------------------------------------------------------------------------------
38 {
39 if (s_aInstances)
40 s_aInstances.Insert(this);
41 }
42
43 //------------------------------------------------------------------------------------------------
45 {
46 if (s_aInstances)
47 s_aInstances.RemoveItem(this);
48 }
49}
vector GetOrigin()
void SCR_CleanSweepArea(IEntitySource src, IEntity parent)
void ~SCR_CleanSweepArea()
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
event void _WB_AfterWorldUpdate(float timeSlice)
Called after updating world in Workbench. The entity must be visible in frustum, selected or named....
ShapeFlags
Definition ShapeFlags.c:13
SCR_FieldOfViewSettings Attribute