Arma Reforger Script API
Loading...
Searching...
No Matches
Public Member Functions | Protected Attributes | List of all members
SCR_LampComponent Interface Reference
Inheritance diagram for SCR_LampComponent:
[legend]

Public Member Functions

override void ToggleLight (bool turnOn, bool skipTransition=false, bool playSound=true)
 
void TurnOn ()
 
void TurnOff ()
 
override bool RplLoad (ScriptBitReader reader)
 
override void OnDelete (IEntity owner)
 
- Public Member Functions inherited from SCR_BaseInteractiveLightComponent
bool GetInitialState ()
 
bool IsOn ()
 
void ToggleLight (bool turnOn, bool skipTransition=false, bool playSound=true)
 
override void EOnVisible (IEntity owner, int frameNumber)
 
override bool RplSave (ScriptBitWriter writer)
 
override bool RplLoad (ScriptBitReader reader)
 
override void OnPostInit (IEntity owner)
 
void RemoveLights ()
 
override void OnDelete (IEntity owner)
 
- Public Member Functions inherited from SCR_BaseLightComponent
LightEntity CreateLight (SCR_BaseLightData lightData, vector position, vector direction, float emissivity)
 

Protected Attributes

SCR_BaseInteractiveLightComponentClass m_ComponentData
 
- Protected Attributes inherited from SCR_BaseInteractiveLightComponent
ref array< LightEntity > m_aLights
 
ParametricMaterialInstanceComponent m_EmissiveMaterialComponent
 
float m_fCurLV
 
float m_fCurEM
 
float m_fLightEmisivityStep
 
bool m_bIsOn
 

Additional Inherited Members

- Protected Member Functions inherited from SCR_BaseInteractiveLightComponent
void TurnOn (notnull SCR_BaseInteractiveLightComponentClass componentData, bool skipTransition, bool playSound)
 
void TurnOff (notnull SCR_BaseInteractiveLightComponentClass componentData, bool playSound)
 
- Static Protected Attributes inherited from SCR_BaseInteractiveLightComponent
const static float MATERIAL_EMISSIVITY_STEP = 0.1
 
const static int MATERIAL_EMISSIVITY_ON = 30
 
const static float LIGHT_EMISSIVITY_START = 0.1
 
const static int MATERIAL_EMISSIVITY_START = 1
 
const static int LIGHT_EMISSIVITY_OFF = 0
 
const static int UPDATE_LIGHT_TIME = 100
 

Member Function Documentation

◆ OnDelete()

override void SCR_LampComponent.OnDelete ( IEntity  owner)

◆ RplLoad()

override bool SCR_LampComponent.RplLoad ( ScriptBitReader  reader)

◆ ToggleLight()

override void SCR_LampComponent.ToggleLight ( bool  turnOn,
bool  skipTransition = false,
bool  playSound = true 
)
Parameters
[in]turnOn
[in]skipTransition
[in]playSound

Implements SCR_BaseInteractiveLightComponent.

◆ TurnOff()

void SCR_LampComponent.TurnOff ( )

◆ TurnOn()

void SCR_LampComponent.TurnOn ( )

Member Data Documentation

◆ m_ComponentData

SCR_BaseInteractiveLightComponentClass SCR_LampComponent.m_ComponentData
protected

The documentation for this interface was generated from the following file: