## XIII
Class ProjectileInWall

source: C:\XIII\XIII\Classes\ProjectileInWall.uc

    Core.Object
       |
       +--Engine.Actor
          |
          +--Engine.Effects
             |
             +--XIII.ProjectileInWall

Direct Known Subclasses:BoltInWall, DartInWall, HarpoonInWall, TKnifeInWall

class ProjectileInWall
extends Engine.Effects

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

Variables
`string` | `StaticMeshName` to dynamicload it

Function Summary
`void` | `PostBeginPlay()`
    //_____________________________________________________________________________
`void` | `Timer()`
    //_____________________________________________________________________________

Source Code

    00001	//
    00002	//-----------------------------------------------------------
    00003	class ProjectileInWall extends Effects
    00004	    NotPlaceable;
    00005
    00006	var string StaticMeshName;  // to dynamicload it
    00007
    00008	//_____________________________________________________________________________
    00009	function PostBeginPlay()
    00010	{
    00011	    Super.PostBeginplay();
    00012	    SetTimer(6.0, false);
    00013	    if ( (StaticMesh == none) && (StaticMeshName != "") )
    00014	    {
    00015	      StaticMesh = StaticMesh(dynamicloadobject(StaticMeshName, class'StaticMesh'));
    00016	      default.StaticMesh = StaticMesh;
    00017	//      Log("PostBeginPlay DYNAMICLOAD StaticMesh "$StaticMeshName@"result "$StaticMesh);
    00018	    }
    00019	}
    00020
    00021	//_____________________________________________________________________________
    00022	function Timer()
    00023	{
    00024	    if ( !PlayerCanSeeMe() )
    00025	      Destroy();
    00026	    else SetTimer(1.0, false);
    00027	}
    00028
    00029
    00030
    00031	defaultproperties
    00032	{
    00033	     bUnlit=False
    00034	     DrawType=DT_StaticMesh
    00035	     LifeSpan=60.000000
    00036	}

End Source Code