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_SpawnAtRadioVehicleAttribute.c
Go to the documentation of this file.
1
[
BaseContainerProps
(),
SCR_BaseEditorAttributeCustomTitle
()]
2
class
SCR_SpawnAtRadioVehicleAttribute
:
SCR_BaseEditorAttribute
3
{
4
//------------------------------------------------------------------------------------------------
5
override
SCR_BaseEditorAttributeVar
ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6
{
7
return
null;
8
9
BaseGameMode gameMode = BaseGameMode.Cast(item);
10
if
(!gameMode)
11
return
null;
12
13
SCR_PlayerSpawnPointManagerComponent
playerSpawnPointManager =
SCR_PlayerSpawnPointManagerComponent
.Cast(gameMode.FindComponent(
SCR_PlayerSpawnPointManagerComponent
));
14
if
(!playerSpawnPointManager)
15
return
null;
16
17
return
SCR_BaseEditorAttributeVar
.
CreateBool
(playerSpawnPointManager.
IsRadioVehicleSpawningEnabled
());
18
}
19
20
//------------------------------------------------------------------------------------------------
21
override
void
WriteVariable(Managed item,
SCR_BaseEditorAttributeVar
var, SCR_AttributesManagerEditorComponent manager,
int
playerID)
22
{
23
if
(!var)
24
return
;
25
26
BaseGameMode gameMode = BaseGameMode.Cast(item);
27
if
(!gameMode)
28
return
;
29
30
SCR_PlayerSpawnPointManagerComponent
playerSpawnPointManager =
SCR_PlayerSpawnPointManagerComponent
.Cast(gameMode.FindComponent(
SCR_PlayerSpawnPointManagerComponent
));
31
if
(!playerSpawnPointManager)
32
return
;
33
34
playerSpawnPointManager.
EnableRadioVehicleSpawning
(var.
GetBool
(), playerID);
35
}
36
};
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_PlayerSpawnPointManagerComponent
Definition
SCR_PlayerSpawnPointManagerComponent.c:11
SCR_PlayerSpawnPointManagerComponent::EnableRadioVehicleSpawning
void EnableRadioVehicleSpawning(bool enable, int notificationPlayerID=-1)
Definition
SCR_PlayerSpawnPointManagerComponent.c:128
SCR_PlayerSpawnPointManagerComponent::IsRadioVehicleSpawningEnabled
bool IsRadioVehicleSpawningEnabled()
Definition
SCR_PlayerSpawnPointManagerComponent.c:157
SCR_SpawnAtRadioVehicleAttribute
Definition
SCR_SpawnAtRadioVehicleAttribute.c:3
scripts
Game
Editor
Containers
Attributes
SCR_SpawnAtRadioVehicleAttribute.c
Generated by
1.17.0