Arma Reforger Explorer
1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Toggle main menu visibility
Loading...
Searching...
No Matches
SCR_WheelSlotInfo.c
Go to the documentation of this file.
1
class
SCR_WheelSlotInfo
:
RegisteringComponentSlotInfo
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
{
9
HitZoneContainerComponent
hitzoneContainer =
HitZoneContainerComponent
.Cast(entity.
FindComponent
(
HitZoneContainerComponent
));
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
{
21
HitZoneContainerComponent
hitzoneContainer =
HitZoneContainerComponent
.Cast(entity.
FindComponent
(
HitZoneContainerComponent
));
22
if
(!hitzoneContainer)
23
return
;
24
25
SCR_WheelHitZone hitZone = SCR_WheelHitZone.Cast(hitzoneContainer.GetDefaultHitZone());
26
if
(hitZone)
27
hitZone.SetWheelIndex(-1);
28
}
29
};
HitZoneContainerComponent
Definition
HitZoneContainerComponent.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
RegisteringComponentSlotInfo
Adds ability to register managers to parent entity.
Definition
RegisteringComponentSlotInfo.c:9
SCR_WheelSlotInfo
Definition
SCR_WheelSlotInfo.c:2
SCR_WheelSlotInfo::OnAttachedEntity
override void OnAttachedEntity(IEntity entity)
Definition
SCR_WheelSlotInfo.c:7
SCR_WheelSlotInfo::OnDetachedEntity
override void OnDetachedEntity(IEntity entity)
Definition
SCR_WheelSlotInfo.c:19
SCR_WheelSlotInfo::m_iWheelIndex
int m_iWheelIndex
Definition
SCR_WheelSlotInfo.c:4
UIWidgets
Definition
attributes.c:40
Attribute
SCR_FieldOfViewSettings Attribute
Definition
SendGoalMessage.c:170
scripts
Game
Vehicle
SCR_WheelSlotInfo.c
Generated by
1.17.0