## XIDCine
Class Neon

source: C:\XIII\XIDCine\Classes\Neon.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Mover
             |
             +--XIII.XIIIMover
                |
                +--XIDCine.BreakableMover
                   |
                   +--XIDCine.Neon

Direct Known Subclasses:None

class Neon
extends XIDCine.BreakableMover

    //-----------------------------------------------------------
    //
    //-----------------------------------------------------------

Variables
`ScriptedLight` | `AttachedLight`

Function Summary
`void` | `PostBeginPlay()`
`void` | `Trigger(Actor Other, Pawn EventInstigator)`

Source Code

    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	}

End Source Code