Arma Reforger Explorer 1.7.0.54
Arma Reforger Code Explorer by Zeroy - Thanks to MisterOutofTime
Loading...
Searching...
No Matches
SCR_EmissiveLightSurfaceSlot.c
Go to the documentation of this file.
2{
3 //------------------------------------------------------------------------------------------------
4 override void OnAttachedEntity(IEntity entity)
5 {
6 super.OnAttachedEntity(entity);
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);
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}
proto external Managed FindComponent(typename typeName)
void SetSurfaceName(string surfaceName)