Arma Reforger Explorer  1.1.0.42
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
SCR_WheelSlotComponent.c
Go to the documentation of this file.
1 #define ENABLE_BASE_DESTRUCTION
2 //------------------------------------------------------------------------------------------------
4 {
5 };
6 
7 class SCR_WheelSlotComponent : BaseSlotComponent
8 {
9  [Attribute("0", UIWidgets.Slider, "Corresponding index to the wheel definition in VehicleWheeledSimulation (-1 means ignore)", "-1 1000 1")]
10  int m_iWheelIndex;
11 #ifdef ENABLE_BASE_DESTRUCTION
12  //------------------------------------------------------------------------------------------------
13  override void OnAttachedEntity(IEntity ent)
14  {
15  SCR_DestructionTireComponent tire = SCR_DestructionTireComponent.Cast(ent.FindComponent(SCR_DestructionTireComponent));
16  if (tire)
17  tire.SetWheelIndex(m_iWheelIndex);
18  }
19 #endif
20 };
SCR_WheelSlotComponentClass
Definition: SCR_WheelSlotComponent.c:3
Attribute
typedef Attribute
Post-process effect of scripted camera.
SCR_WheelSlotComponent
Definition: SCR_WheelSlotComponent.c:7
BaseSlotComponentClass
Definition: BaseSlotComponent.c:12