Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |
00001 00002 00003 00004 00005 00006 00007 00008 00009 00010 00011 00012 00013 00014 00015 00016 00017 00018 00019 00020 00021 00022 00023 00024 00025 00026 00027 00028 00029 00030 00031 00032 00033 00034 00035 00036 00037 00038 00039 00040 00041 00042 00043 00044 00045 00046 00047 00048 00049 00050 00051 |
class TsActionPointLight extends TsAction; var(Action) MojoKeyframe position; var(Action) float duration; var(LightColor) float LightBrightness; var(LightColor) byte LightHue, LightSaturation; var transient TsPointLight light; var transient float elapsedTime; function bool OnStart() { elapsedTime = 0; // spawn light light = actor.spawn(class'TsPointLight', , , position.position); if (light == None) Log("Failed to spawn light."); light.SetProperties(LightBrightness, LightHue, LightSaturation); return true; } function bool OnTick(float delta) { elapsedTime += delta; if (elapsedTime > duration) { light.SwitchOff(); light.Destroyed(); return false; } else { return true; } } defaultproperties { DName ="Point Light" Track ="Effects" Help ="Creates a point light." duration =3 LightBrightness =64 LightSaturation =255 } |
Overview | Package | Class | Source | Class tree | Glossary | UnrealScript Documentation |
previous class next class | frames no frames |