Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_GlobalFuelConsumptionScaleEditorAttribute.c
Go to the documentation of this file.
1
6{
7 //------------------------------------------------------------------------------------------------
8 override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
9 {
10 if (!IsGameMode(item))
11 return null;
12
13 return SCR_BaseEditorAttributeVar.CreateFloat(SCR_FuelConsumptionComponent.GetGlobalFuelConsumptionScale());
14 }
15
16 //------------------------------------------------------------------------------------------------
17 override void WriteVariable(Managed item, SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, int playerID)
18 {
19 if (!var)
20 return;
21
22 if (!IsGameMode(item))
23 return;
24
25 SCR_FuelConsumptionComponent.SetGlobalFuelConsumptionScale(var.GetFloat(), playerID);
26 }
27};
SCR_AIAnimation_Loitering BaseContainerProps
Commanding menu commanding element class.
static SCR_BaseEditorAttributeVar CreateFloat(float value)