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_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"
)]
2
class
SCR_CleanSweepAreaClass
: GenericEntityClass
3
{
4
}
5
6
class
SCR_CleanSweepArea
:
GenericEntity
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
//------------------------------------------------------------------------------------------------
37
void
SCR_CleanSweepArea
(
IEntitySource
src,
IEntity
parent)
38
{
39
if
(s_aInstances)
40
s_aInstances.Insert(
this
);
41
}
42
43
//------------------------------------------------------------------------------------------------
44
void
~SCR_CleanSweepArea
()
45
{
46
if
(s_aInstances)
47
s_aInstances.RemoveItem(
this
);
48
}
49
}
GetOrigin
vector GetOrigin()
Definition
SCR_AIUtilityComponent.c:471
SCR_CleanSweepArea
void SCR_CleanSweepArea(IEntitySource src, IEntity parent)
Definition
SCR_CleanSweepArea.c:37
~SCR_CleanSweepArea
void ~SCR_CleanSweepArea()
Definition
SCR_CleanSweepArea.c:44
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
desc
UI Textures DeployMenu Briefing conflict_HintBanner_1_UI desc
Definition
SCR_RespawnBriefingComponent.c:17
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
GenericEntity
Definition
GenericEntity.c:16
GenericEntity::_WB_AfterWorldUpdate
event void _WB_AfterWorldUpdate(float timeSlice)
Called after updating world in Workbench. The entity must be visible in frustum, selected or named....
IEntity
Definition
IEntity.c:13
IEntitySource
Definition
IEntitySource.c:13
SCR_CleanSweepAreaClass
Definition
SCR_CleanSweepArea.c:3
ShapeFlags
ShapeFlags
Definition
ShapeFlags.c:13
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Entities
CleanSweep
SCR_CleanSweepArea.c
Generated by
1.17.0