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_EnableSpawnPointEditorAttribute.c
Go to the documentation of this file.
1
4
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
5
class
SCR_EnableSpawnPointEditorAttribute
:
SCR_BaseEditorAttribute
6
{
7
//------------------------------------------------------------------------------------------------
8
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
9
{
10
SCR_EditableEntityComponent
editableEntity =
SCR_EditableEntityComponent
.Cast(item);
11
if
(!editableEntity)
12
return
null;
13
14
SCR_SpawnPoint
spawnPoint =
SCR_SpawnPoint
.Cast(editableEntity.GetOwner());
15
if
(!spawnPoint)
16
return
null;
17
18
return
SCR_BaseEditorAttributeVar
.
CreateBool
(spawnPoint.
IsSpawnPointEnabled
());
19
}
20
21
//------------------------------------------------------------------------------------------------
22
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
23
{
24
if
(!var)
25
return
;
26
27
SCR_EditableEntityComponent
editableEntity =
SCR_EditableEntityComponent
.Cast(item);
28
if
(!editableEntity)
29
return
;
30
31
SCR_SpawnPoint
spawnPoint =
SCR_SpawnPoint
.Cast(editableEntity.GetOwner());
32
if
(!spawnPoint)
33
return
;
34
35
spawnPoint.
SetSpawnPointEnabled_S
(var.
GetBool
());
36
}
37
}
BaseContainerProps
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
Definition
SCR_AIAnimationWaypoint.c:14
SCR_BaseEditorAttributeCustomTitle
Definition
SCR_BaseEditorAttribute.c:876
SCR_BaseEditorAttribute
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
Definition
SCR_BaseEditorAttribute.c:4
SCR_BaseEditorAttributeVar
Definition
SCR_BaseEditorAttributeVar.c:2
SCR_BaseEditorAttributeVar::CreateBool
static SCR_BaseEditorAttributeVar CreateBool(bool value)
Definition
SCR_BaseEditorAttributeVar.c:119
SCR_BaseEditorAttributeVar::GetBool
bool GetBool()
Definition
SCR_BaseEditorAttributeVar.c:56
SCR_EditableEntityComponent
Definition
SCR_EditableEntityComponent.c:14
SCR_EnableSpawnPointEditorAttribute
Definition
SCR_EnableSpawnPointEditorAttribute.c:6
SCR_SpawnPoint
Spawn point entity defines positions on which players can possibly spawn.
Definition
SCR_SpawnPoint.c:28
SCR_SpawnPoint::IsSpawnPointEnabled
bool IsSpawnPointEnabled()
Definition
SCR_SpawnPoint.c:111
SCR_SpawnPoint::SetSpawnPointEnabled_S
void SetSpawnPointEnabled_S(bool enabled)
Definition
SCR_SpawnPoint.c:117
scripts
Game
Editor
Containers
Attributes
SCR_EnableSpawnPointEditorAttribute.c
Generated by
1.17.0