Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
AISpawnerGroupFaction.c
Go to the documentation of this file.
1 // Script File
2 [EntityEditorProps(category: "GameScripted/Gamemodes")]
3 class SCR_AISpawnerGroupFactionClass: AISpawnerGroupClass
4 {
5 
6 };
7 
8 class SCR_AISpawnerGroupFaction: AISpawnerGroup
9 {
10  [Attribute("", UIWidgets.EditBox, "Faction")]
11  FactionKey m_faction;
12 
13  override void OnSpawn(IEntity spawned)
14  {
15  GenericEntity ge = GenericEntity.Cast(spawned);
16  if (ge)
17  {
18  FactionAffiliationComponent comp = FactionAffiliationComponent.Cast(ge.FindComponent(FactionAffiliationComponent));
19  if (comp)
20  {
21  comp.SetAffiliatedFactionByKey(m_faction);
22  }
23  }
24  }
25 };
SCR_AISpawnerGroupFactionClass
Definition: AISpawnerGroupFaction.c:3
EntityEditorProps
enum EQueryType EntityEditorProps(category:"GameScripted/Sound", description:"THIS IS THE SCRIPT DESCRIPTION.", color:"0 0 255 255")
Definition: SCR_AmbientSoundsComponent.c:12
GenericEntity
SCR_GenericBoxEntityClass GenericEntity
SCR_AISpawnerGroupFaction
Definition: AISpawnerGroupFaction.c:8
Attribute
typedef Attribute
Post-process effect of scripted camera.
category
params category
Definition: SCR_VehicleDamageManagerComponent.c:180