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_BaseFactionTriggerEntity.c
Go to the documentation of this file.
1
[
EntityEditorProps
(
category
:
"GameScripted/Triggers"
, description:
""
)]
2
class
SCR_BaseFactionTriggerEntityClass
:
SCR_BaseTriggerEntityClass
3
{
4
}
5
6
class
SCR_BaseFactionTriggerEntity
: SCR_BaseTriggerEntity
7
{
8
[
Attribute
(
desc
:
"Factions which are used for area control calculation."
,
category
:
"Faction Trigger"
)]
9
protected
ref array<FactionKey>
m_aOwnerFactionKeys
;
10
11
//------------------------------------------------------------------------------------------------
12
void
AddOwnerFaction(
FactionKey
factionKey)
13
{
14
if
(!
m_aOwnerFactionKeys
)
15
m_aOwnerFactionKeys
= {};
16
17
m_aOwnerFactionKeys
.Insert(factionKey);
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
bool
ScriptedEntityFilterForQuery
(
IEntity
ent)
22
{
23
if
(!
m_aOwnerFactionKeys
||
m_aOwnerFactionKeys
.IsEmpty() || !IsAlive(ent))
24
return
false
;
25
26
FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(ent.
FindComponent
(FactionAffiliationComponent));
27
return
factionAffiliation &&
m_aOwnerFactionKeys
.Contains(factionAffiliation.GetAffiliatedFaction().GetFactionKey());
28
}
29
30
//------------------------------------------------------------------------------------------------
31
void
SCR_BaseFactionTriggerEntity
(
IEntitySource
src,
IEntity
parent)
32
{
33
SetEventMask(
EntityEvent
.INIT);
34
}
35
}
ScriptedEntityFilterForQuery
override bool ScriptedEntityFilterForQuery(IEntity ent)
Definition
SCR_BaseFactionTriggerEntity.c:21
SCR_BaseFactionTriggerEntity
void SCR_BaseFactionTriggerEntity(IEntitySource src, IEntity parent)
Definition
SCR_BaseFactionTriggerEntity.c:31
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
m_aOwnerFactionKeys
ref array< string > m_aOwnerFactionKeys
Definition
SCR_Task.c:99
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
FactionKey
Definition
FactionKey.c:3
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
IEntitySource
Definition
IEntitySource.c:13
SCR_BaseFactionTriggerEntityClass
Definition
SCR_BaseFactionTriggerEntity.c:3
SCR_BaseTriggerEntityClass
Definition
SCR_BaseTriggerEntity.c:3
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
EntityEvent
EntityEvent
Various entity events.
Definition
EntityEvent.c:14
scripts
Game
Entities
Triggers
SCR_BaseFactionTriggerEntity.c
Generated by
1.17.0