Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_WheelSlotInfo.c
Go to the documentation of this file.
2{
3 [Attribute("-1", UIWidgets.Slider, "VehicleWheeledSimulation wheel index", "-1 1000 1")]
4 protected int m_iWheelIndex;
5
6 //------------------------------------------------------------------------------------------------
7 override void OnAttachedEntity(IEntity entity)
8 {
10 if (!hitzoneContainer)
11 return;
12
13 SCR_WheelHitZone hitZone = SCR_WheelHitZone.Cast(hitzoneContainer.GetDefaultHitZone());
14 if (hitZone)
15 hitZone.SetWheelIndex(m_iWheelIndex);
16 }
17
18 //------------------------------------------------------------------------------------------------
19 override void OnDetachedEntity(IEntity entity)
20 {
22 if (!hitzoneContainer)
23 return;
24
25 SCR_WheelHitZone hitZone = SCR_WheelHitZone.Cast(hitzoneContainer.GetDefaultHitZone());
26 if (hitZone)
27 hitZone.SetWheelIndex(-1);
28 }
29};
proto external Managed FindComponent(typename typeName)
Adds ability to register managers to parent entity.
override void OnAttachedEntity(IEntity entity)
override void OnDetachedEntity(IEntity entity)
SCR_FieldOfViewSettings Attribute