Core.Object | +--Engine.Actor | +--Engine.Mover | +--XIII.XIIIMover | +--XIDCine.BreakableMover | +--XIDCine.Neon
ScriptedLight
AttachedLight
void
PostBeginPlay()
Trigger(Actor Other, Pawn EventInstigator)
00001 //----------------------------------------------------------- 00002 // 00003 //----------------------------------------------------------- 00004 class Neon extends BreakableMover; 00005 00006 var() ScriptedLight AttachedLight; 00007 00008 function PostBeginPlay() 00009 { 00010 if (AttachedLight!=none) 00011 { 00012 if (AttachedLight.bInitiallyOn) 00013 bUnlit=true; 00014 else 00015 bUnlit=false; 00016 Tag=AttachedLight.Tag; 00017 } 00018 else 00019 { 00020 Disable('Trigger'); 00021 } 00022 Super.PostBeginPlay(); 00023 } 00024 00025 function Trigger( actor Other, pawn EventInstigator ) 00026 { 00027 bUnlit=!bUnlit; 00028 } 00029 00030 event TakeDamage( int Damage, Pawn EventInstigator, vector HitLocation, vector Momentum, class<DamageType> DamageType) 00031 { 00032 AttachedLight.InitialBrightness=0; 00033 AttachedLight.LightBrightness=0; 00034 AttachedLight.Destroy(); 00035 super.TakeDamage( Damage, EventInstigator, HitLocation, Momentum, DamageType); 00036 } 00037 00038 00039 00040 00041 00042 00043 00044 00045 defaultproperties 00046 { 00047 }