Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WheelSlotComponent.c
Go to the documentation of this file.
1#define ENABLE_BASE_DESTRUCTION
2//------------------------------------------------------------------------------------------------
6
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};
proto external Managed FindComponent(typename typeName)
SCR_FieldOfViewSettings Attribute