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_EditableSpawnPointComponent.c
Go to the documentation of this file.
1
[
ComponentEditorProps
(
category
:
"GameScripted/Editor (Editables)"
, description:
""
, icon:
"WBData/ComponentEditorProps/componentEditor.png"
)]
2
class
SCR_EditableSpawnPointComponentClass
:
SCR_EditableDescriptorComponentClass
3
{
4
}
5
7
9
class
SCR_EditableSpawnPointComponent
:
SCR_EditableDescriptorComponent
10
{
11
protected
SCR_SpawnPoint
m_SpawnPoint
;
12
protected
ref
SCR_UIInfo
m_UIInfoSpawnPoint
;
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
20
m_SpawnPoint
.LinkInfo(
m_UIInfoSpawnPoint
);
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
39
UpdateNearestLocation
();
40
return
true
;
41
}
42
43
//------------------------------------------------------------------------------------------------
44
override
ScriptInvoker
GetOnUIRefresh
()
45
{
46
return
Event_OnUIRefresh
;
47
}
48
49
//------------------------------------------------------------------------------------------------
50
// constructor
54
void
SCR_EditableSpawnPointComponent
(
IEntityComponentSource
src,
IEntity
ent,
IEntity
parent)
55
{
56
m_SpawnPoint
=
SCR_SpawnPoint
.Cast(ent);
57
}
58
}
ComponentEditorProps
enum EAIGroupCombatMode ComponentEditorProps(category:"GameScripted/AI", description:"Component for utility AI system for groups")
Definition
SCR_AIGroupUtilityComponent.c:12
m_SpawnPoint
SCR_SpawnPoint m_SpawnPoint
Definition
SCR_CampaignMobileAssemblyComponent.c:23
GetFaction
SCR_CampaignFaction GetFaction()
Definition
SCR_CampaignMobileAssemblyStandaloneComponent.c:164
m_Owner
IEntity m_Owner
Definition
SCR_CampaignServiceCompositionComponent.c:18
SetTransform
override bool SetTransform(vector transform[4], bool changedByUser=false)
Definition
SCR_EditableCharacterComponent.c:471
GetOnUIRefresh
override ScriptInvoker GetOnUIRefresh()
Definition
SCR_EditableCharacterComponent.c:551
SCR_EditableDescriptorComponent
void SCR_EditableDescriptorComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_EditableDescriptorComponent.c:137
m_UIInfoDescriptor
ref SCR_EditableDescriptorUIInfo m_UIInfoDescriptor
Definition
SCR_EditableDescriptorComponent.c:21
GetOnLocationChange
void GetOnLocationChange(SCR_EditableEntityComponent nearestLocation)
Definition
SCR_EditableSpawnPointComponent.c:24
UpdateNearestLocation
bool UpdateNearestLocation(vector pos=vector.Zero)
Definition
SCR_EditableDescriptorComponent.c:38
UpdateInfo
void UpdateInfo(SCR_UIDescription from=null)
Definition
SCR_EditableDescriptorComponent.c:87
Event_OnUIRefresh
ref ScriptInvoker Event_OnUIRefresh
Definition
SCR_EditableGroupComponent.c:38
UpdateText
void UpdateText()
Definition
SCR_EditableSpawnPointComponent.c:15
m_UIInfoSpawnPoint
ref SCR_UIInfo m_UIInfoSpawnPoint
Definition
SCR_EditableSpawnPointComponent.c:12
SCR_EditableSpawnPointComponent
void SCR_EditableSpawnPointComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Definition
SCR_EditableSpawnPointComponent.c:54
category
params category
Definition
SCR_VehicleDamageManagerComponent.c:302
IEntityComponentSource
Definition
IEntityComponentSource.c:13
IEntity
Definition
IEntity.c:13
SCR_EditableDescriptorComponentClass
Definition
SCR_EditableDescriptorComponent.c:7
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EditableSpawnPointComponentClass
Definition
SCR_EditableSpawnPointComponent.c:3
SCR_SpawnPoint
Spawn point entity defines positions on which players can possibly spawn.
Definition
SCR_SpawnPoint.c:28
SCR_UIInfo
Definition
SCR_UIInfo.c:8
SCR_UIInfo::CreateInfo
static SCR_UIInfo CreateInfo(UIInfo source)
Definition
SCR_UIInfo.c:146
vector
Definition
vector.c:13
ScriptInvoker
ScriptInvokerBase< func > ScriptInvoker
Definition
tools.c:134
scripts
Game
Editor
Components
EditableEntity
SCR_EditableSpawnPointComponent.c
Generated by
1.17.0