Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EditableSpawnPointComponent.c
Go to the documentation of this file.
1[ComponentEditorProps(category: "GameScripted/Editor (Editables)", description: "", icon: "WBData/ComponentEditorProps/componentEditor.png")]
5
7
10{
13
14 //------------------------------------------------------------------------------------------------
15 protected void UpdateText()
16 {
17 UpdateInfo();
18
19 m_UIInfoSpawnPoint = SCR_UIInfo.CreateInfo(m_UIInfoDescriptor.GetLocationName()); //--- Simplified UI info containing only location name
21 }
22
23 //------------------------------------------------------------------------------------------------
24 override protected void GetOnLocationChange(SCR_EditableEntityComponent nearestLocation)
25 {
26 UpdateText();
27
28 FactionAffiliationComponent factionAffiliation = FactionAffiliationComponent.Cast(m_Owner.FindComponent(FactionAffiliationComponent));
29 if (factionAffiliation)
30 factionAffiliation.SetAffiliatedFaction(GetFaction());
31 }
32
33 //------------------------------------------------------------------------------------------------
34 override bool SetTransform(vector transform[4], bool changedByUser = false)
35 {
36 if (!super.SetTransform(transform, changedByUser))
37 return false;
38
40 return true;
41 }
42
43 //------------------------------------------------------------------------------------------------
45 {
46 return Event_OnUIRefresh;
47 }
48
49 //------------------------------------------------------------------------------------------------
50 // constructor
58}
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
SCR_SpawnPoint m_SpawnPoint
SCR_CampaignFaction GetFaction()
override bool SetTransform(vector transform[4], bool changedByUser=false)
override ScriptInvoker GetOnUIRefresh()
void SCR_EditableDescriptorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
ref SCR_EditableDescriptorUIInfo m_UIInfoDescriptor
void GetOnLocationChange(SCR_EditableEntityComponent nearestLocation)
bool UpdateNearestLocation(vector pos=vector.Zero)
void UpdateInfo(SCR_UIDescription from=null)
ref ScriptInvoker Event_OnUIRefresh
ref SCR_UIInfo m_UIInfoSpawnPoint
void SCR_EditableSpawnPointComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Spawn point entity defines positions on which players can possibly spawn.
static SCR_UIInfo CreateInfo(UIInfo source)
Definition SCR_UIInfo.c:146
ScriptInvokerBase< func > ScriptInvoker
Definition tools.c:134