Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EnableDeployableSpawnPointsEditorAttribute.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6 {
7 BaseGameMode gameMode = BaseGameMode.Cast(item);
8 if (!gameMode)
9 return null;
10
12 if (!playerSpawnPointManager)
13 return null;
14
16 }
17
18 //------------------------------------------------------------------------------------------------
19 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
20 {
21 if (!var)
22 return;
23
24 BaseGameMode gameMode = BaseGameMode.Cast(item);
25 if (!gameMode)
26 return;
27
29 if (!playerSpawnPointManager)
30 return;
31
32 playerSpawnPointManager.EnableDeployableSpawnPoints(var.GetBool(), playerID);
33 }
34
35 //------------------------------------------------------------------------------------------------
36 override void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit = false)
37 {
38 //Set sub labels
39 if (isInit)
40 {
41 manager.SetAttributeAsSubAttribute(SCR_GlobalDeployableRadioSettingEditorAttribute);
42 manager.SetAttributeAsSubAttribute(SCR_DeployableRadioTicketEditorAttribute);
43 }
44
46 int type = -1;
47
48 manager.GetAttributeVariable(SCR_GlobalDeployableRadioSettingEditorAttribute, typeVar);
49 if (typeVar)
50 type = typeVar.GetInt();
51
52 manager.SetAttributeEnabled(SCR_GlobalDeployableRadioSettingEditorAttribute, var && var.GetBool());
53 manager.SetAttributeEnabled(SCR_DeployableRadioTicketEditorAttribute, var && var.GetBool() && type == 2);
54 }
55}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
EDamageType type
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateBool(bool value)
void EnableDeployableSpawnPoints(bool enable, int notificationPlayerID=-1)