Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
AISpawnerGroupFaction.c
Go to the documentation of this file.
1// Script File
2[EntityEditorProps(category: "GameScripted/Gamemodes")]
7
8class 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};
enum SCR_ECompassType EntityEditorProps(category:"GameScripted/Gadgets", description:"Compass", color:"0 0 255 255")
Prefab data class for compass component.
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute