# ScriptedLight.ScriptedLight

ScriptedLight. (version 1.1)
Copyright © 2001, Lode Vandevenne.
The ScriptedLight Allows you to dynamicly change LightBrightness, LightHue, LightSaturation, LightRadius, VolumeBrightness, VolumeFog, VolumeRadius, DrawScale, LightType and LightEffect during gameplay. These changes can be done by Waves(WAVE_Sinus, WAVE_DoubleSinus, WAVE_SawTooth, WAVE_Square, WAVE_AdvancedSquare, WAVE_Random or WAVE_Constant) or Keys(Up to 4 pre-defined combinations of settings), and all of this can be controlled by Triggers or by Father Time. You have control over the speed, smoothness, amplitude, phase and much more of the Waves. And, with the ScriptedLight, you can make lights similar to the TriggerLight, but here the corona will be triggered on and off too! (the classic, official TriggerLight doesn't do this). A special effect is added: FX_TriggerFlickerOn, to simulate a tubelight that flickers before going on.
A detailed manual and example map should be included. If you don't have these, you can find them at http://www.planetunreal.com/lode Also check there for new versions.
Do not distribute any scripts that are based on this script without permission of the author. The author of this script is not responsible for any damage caused by this script.
Contact me at lode@altern.org for suggestions, bugs, questions or whatever

Extends:
Modifiers:
Source code

    ScriptedLight.ScriptedLight

%%

## Variables

%function_comment% |  |  | float | A
%function_comment% |  |  | int | ArrayValue
%function_comment% |  |  | float | B
%function_comment% |  |  | bool | bInitiallyOff
%function_comment% |  |  | byte | bKeyCorona[4]
%function_comment% |  |  | bool | bSLWave
%function_comment% |  |  | bool | bSwapDirection
%function_comment% |  |  | bool | bTriggerCoronaToo
%function_comment% |  |  | bool | bUseBrightness
%function_comment% |  |  | bool | bUseBrightness2
%function_comment% |  |  | bool | bUseCorona
%function_comment% |  |  | bool | bUseDrawScale
%function_comment% |  |  | bool | bUseDrawScale2
%function_comment% |  |  | bool | bUseEvent
%function_comment% |  |  | bool | bUseHue
%function_comment% |  |  | bool | bUseHue2
%function_comment% |  |  | bool | bUseLightEffect
%function_comment% |  |  | bool | bUseLightType
%function_comment% |  |  | bool | bUseRadius
%function_comment% |  |  | bool | bUseRadius2
%function_comment% |  |  | bool | bUseSaturation
%function_comment% |  |  | bool | bUseSaturation2
%function_comment% |  |  | bool | bUseVolumeBrightness
%function_comment% |  |  | bool | bUseVolumeBrightness2
%function_comment% |  |  | bool | bUseVolumeFog
%function_comment% |  |  | bool | bUseVolumeFog2
%function_comment% |  |  | bool | bUseVolumeRadius
%function_comment% |  |  | bool | bUseVolumeRadius2
%function_comment% |  |  | float | C
%function_comment% |  |  | float | D
%function_comment% |  |  | float | DrawScaleStartPoint
%function_comment% |  |  | float | E
%function_comment% |  |  | float | F
%function_comment% |  |  | int | FlickerStatus
%function_comment% |  |  | float | FlickerTime
%function_comment% |  |  | float | G
%function_comment% |  |  | float | H
%function_comment% |  |  | byte | HueStartPoint
%function_comment% |  |  | byte | KeyBrightness[4]
%function_comment% |  |  | byte | KeyDrawScale[4]
%function_comment% |  |  | byte | KeyHue[4]
%function_comment% |  |  | ELightEffect | KeyLightEffect[4]
%function_comment% |  |  | ELightType | KeyLightType[4]
%function_comment% |  |  | byte | KeyRadius[4]
%function_comment% |  |  | byte | KeySaturation[4]
%function_comment% |  |  | float | KeyTime[4]
%function_comment% |  |  | byte | KeyVolumeBrightness[4]
%function_comment% |  |  | byte | KeyVolumeFog[4]
%function_comment% |  |  | byte | KeyVolumeRadius[4]
%function_comment% |  |  | int | NumKeys
%function_comment% |  |  | float | RandomValue
%function_comment% |  |  | float | ScriptedLightPeriod
%function_comment% |  |  | float | SLTicker
%function_comment% |  |  | float | SLWave
%function_comment% |  |  | float | SLWave2
%function_comment% |  |  | byte | SquareOffValue
%function_comment% |  |  | byte | SquareOnValue
%function_comment% |  |  | int | StartKey
%function_comment% |  |  | float | TimerControl
%function_comment% |  |  | float | TransTime[4]
%function_comment% |  |  | ETriggerAction | TriggerAction
%function_comment% |  |  | byte | TriggerOffValue
%function_comment% |  |  | byte | TriggerOnValue
%function_comment% |  |  | float | TurnOnTimer

## Enums

%function_comment% | ETriggerAction |  | TA_IgnoreTrigger, TA_TriggerTurnsOn, TA_TriggerTurnsOff, TA_TriggerToggle, TA_TriggerControlOn, TA_TriggerControlOff, TA_TriggerRandom,

## Functions

|  |  | ApplySettings (float SLApply, bool bApply)
|  |  | DoEvent ()
| FX_TriggerFlickersOn |  | DoRandom ()
| WAVE_Random |  | DoRandom ()
| KEY_Timed |  | ModifyKeyDouble (int Array1, int Array2, float Time2, float Ticker)
|  |  | ModifyKeySingle (int Array1)
|  |  | PostBeginPlay ()
| WAVE_DoubleSinus |  | tick (float deltatime)
| WAVE_AdvancedSquare |  | tick (float DeltaTime)
| WAVE_Square |  | tick (float DeltaTime)
| WAVE_Random |  | tick (float DeltaTime)
| KEY_Triggered |  | tick (float DeltaTime)
| FX_TriggerFlickersOn |  | tick (float deltatime)
| WAVE_Sinus |  | tick (float DeltaTime)
| KEY_Timed |  | tick (float DeltaTime)
| WAVE_SawTooth |  | tick (float deltatime)
| WAVE_DoubleSinus |  | trigger (actor Other, pawn EventInstigator)
| KEY_Timed |  | Trigger (actor Other, pawn EventInstigator)
| WAVE_Random |  | Trigger (actor Other, pawn EventInstigator)
| WAVE_Constant |  | trigger (actor Other, pawn EventInstigator)
| FX_TriggerFlickersOn |  | trigger (actor Other, pawn EventInstigator)
| WAVE_SawTooth |  | Trigger (actor Other, pawn EventInstigator)
| WAVE_Sinus |  | Trigger (actor Other, pawn EventInstigator)
| WAVE_AdvancedSquare |  | Trigger (actor Other, pawn EventInstigator)
| WAVE_Square |  | Trigger (actor Other, pawn EventInstigator)
| KEY_Triggered |  | trigger (actor Other, pawn EventInstigator)
|  |  | TriggerActions ()
| KEY_Timed |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_AdvancedSquare |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_SawTooth |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_Sinus |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_Square |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_Constant |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_DoubleSinus |  | UnTrigger (actor Other, pawn EventInstigator)
| WAVE_Random |  | UnTrigger (actor Other, pawn EventInstigator)
|  |  | UnTriggerActions ()

## Default properties

    {
         bStatic=False
         InitialState=WAVE_Sinus
         Style=STY_Translucent
         bMovable=True
    }

class file time: 12/7/2003 3:58:28 PM - creation time: 12/7/2003 4:03:39 PM
Created with UnCodeX