REDNODE / GAME API

ElectricLight

classscriptedClass

extends Device › DeviceBase › GameObject › GameEntity › Entity › IScriptable › ISerializable

Extended by 1 type

ExitLight

Properties 2

NameTypeFlags
lightComponentsarray<ref<gameLightComponent>>scriptedprivate
lightDefinitionsarray<LightPreset>scriptedprivate

Methods 21

private final func ApplyPreset(light: ref<gameLightComponent>, preset: TweakDBID)scripted
private final func CreateColorFromIntArray(ints: script_ref<array<Int32>>, out color: Color) -> Boolscripted
protected func CutPower()scripted
private const func GetController() -> ref<ElectricLightController>scripted
public const func GetDevicePS() -> ref<ElectricLightControllerPS>scripted
protected func IncludeLightsInVisibilityBoundsScript() -> Boolscripted
public const func IsGameplayRelevant() -> Boolscripted
protected cb func OnEMPEnded(evt: ref<EMPEnded>) -> Boolscripted
protected cb func OnEMPHitEvent(evt: ref<EMPHitEvent>) -> Boolscripted
protected cb func OnHitEvent(hit: ref<gameHitEvent>) -> Boolscripted
protected cb func OnPhysicalDestructionEvent(evt: ref<PhysicalDestructionEvent>) -> Boolscripted
protected cb func OnRequestComponents(ri: EntityRequestComponentsInterface) -> Boolscripted
protected cb func OnTakeControl(ri: EntityResolveComponentsInterface) -> Boolscripted
protected func ReactToHit(hit: ref<gameHitEvent>)scripted
protected func RestorePower()scripted
protected const func ShouldRegisterToHUD() -> Boolscripted
public const func ShouldSendGameAttachedEventToPS() -> Boolscripted
protected func TurnOffDevice()scripted
private final func TurnOffLights()scripted
protected func TurnOnDevice()scripted
private final func TurnOnLights()scripted