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_EmissiveLightSurfaceSlot.c
Go to the documentation of this file.
1
class
SCR_EmissiveLightSurfaceSlot
:
EmissiveLightSurfaceSlot
2
{
3
//------------------------------------------------------------------------------------------------
4
override
void
OnAttachedEntity(
IEntity
entity)
5
{
6
super.OnAttachedEntity(entity);
7
HitZoneContainerComponent
hitZoneContainer =
HitZoneContainerComponent
.Cast(entity.
FindComponent
(
HitZoneContainerComponent
));
8
if
(!hitZoneContainer)
9
return
;
10
11
SCR_LightHitZone
hitZone =
SCR_LightHitZone
.Cast(hitZoneContainer.GetDefaultHitZone());
12
if
(hitZone)
13
hitZone.
SetSurfaceName
(GetSourceName());
14
}
15
16
//------------------------------------------------------------------------------------------------
17
override
void
OnDetachedEntity(
IEntity
entity)
18
{
19
super.OnDetachedEntity(entity);
20
HitZoneContainerComponent
hitZoneContainer =
HitZoneContainerComponent
.Cast(entity.
FindComponent
(
HitZoneContainerComponent
));
21
if
(!hitZoneContainer)
22
return
;
23
24
SCR_LightHitZone
hitZone =
SCR_LightHitZone
.Cast(hitZoneContainer.GetDefaultHitZone());
25
if
(hitZone)
26
hitZone.
SetSurfaceName
(
string
.Empty);
27
}
28
}
EmissiveLightSurfaceSlot
Definition
EmissiveLightSurfaceSlot.c:13
HitZoneContainerComponent
Definition
HitZoneContainerComponent.c:13
IEntity
Definition
IEntity.c:13
IEntity::FindComponent
proto external Managed FindComponent(typename typeName)
SCR_EmissiveLightSurfaceSlot
Definition
SCR_EmissiveLightSurfaceSlot.c:2
SCR_LightHitZone
Definition
SCR_LightHitZone.c:3
SCR_LightHitZone::SetSurfaceName
void SetSurfaceName(string surfaceName)
Definition
SCR_LightHitZone.c:10
scripts
Game
Vehicle
SCR_EmissiveLightSurfaceSlot.c
Generated by
1.17.0