Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_SetEnableDamageEditorVehicleAttribute.c
Go to the documentation of this file.
3 {
4  override SCR_BaseEditorAttributeVar ReadVariable(Managed item, SCR_AttributesManagerEditorComponent manager)
5  {
6  return super.ReadVariable(item, manager);
7  }
8 
9  override void UpdateInterlinkedVariables(SCR_BaseEditorAttributeVar var, SCR_AttributesManagerEditorComponent manager, bool isInit = false)
10  {
11  if (isInit)
12  manager.SetAttributeAsSubAttribute(SCR_HealthVehicleEditorAttribute);
13 
14  bool enabledDamage = var && var.GetBool();
15 
16  manager.SetAttributeEnabled(SCR_HealthVehicleEditorAttribute, enabledDamage);
17  }
18 };
SCR_SetEnableDamageEditorAttribute
Definition: SCR_SetEnableDamageEditorAttribute.c:2
SCR_HealthVehicleEditorAttribute
Definition: SCR_HealthVehicleEditorAttribute.c:4
SCR_SetEnableDamageVehicleEditorAttribute
Definition: SCR_SetEnableDamageEditorVehicleAttribute.c:2
SCR_BaseEditorAttributeCustomTitle
Definition: SCR_BaseEditorAttribute.c:868
SCR_BaseEditorAttributeVar
Definition: SCR_BaseEditorAttributeVar.c:1
BaseContainerProps
SCR_AIGoalReaction_Follow BaseContainerProps
Handles insects that are supposed to be spawned around selected prefabs defined in prefab names array...
Definition: SCR_AIGoalReaction.c:468