Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_AllowEntityRefundActionEditorAttribute.c
Go to the documentation of this file.
3{
4 //------------------------------------------------------------------------------------------------
5 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
6 {
7 if (!IsGameMode(item))
8 return null;
9
11 if (!additionalGameSettings)
12 return null;
13
14 return SCR_BaseEditorAttributeVar.CreateBool(additionalGameSettings.IsEntityRefundingActionAllowed());
15 }
16
17 //------------------------------------------------------------------------------------------------
18 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
19 {
20 if (!var)
21 return;
22
24 if (!additionalGameSettings)
25 return;
26
27 additionalGameSettings.SetAllowEntityRefundingAction_S(var.GetBool(), playerID);
28 }
29}
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
void SCR_AdditionalGameModeSettingsComponent(IEntityComponentSource src, IEntity ent, IEntity parent)
Base Attribute Script for other attributes to inherent from to get and set varriables in Editor Attri...
static SCR_BaseEditorAttributeVar CreateBool(bool value)