RuneI
Class GlowPlant

source: c:\runehov\RuneI\Classes\GlowPlant.uc
Core.Object
   |
   +--Engine.Actor
      |
      +--Engine.Decoration
         |
         +--RuneI.DecorationRune
            |
            +--RuneI.Plants
               |
               +--RuneI.GlowPlant
Direct Known Subclasses:GlowPlant1, GlowPlant2, GlowPlant3, GlowPlant4, GlowPlant5

class GlowPlant
extends RuneI.Plants

//============================================================================= // GlowPlant. //=============================================================================
Variables
 bool bNoSparks
 Actor sparks


Function Summary
 void Destroyed()
 
simulated
PreBeginPlay()



Source Code


00001	//=============================================================================
00002	// GlowPlant.
00003	//=============================================================================
00004	class GlowPlant extends Plants;
00005	
00006	var actor sparks;
00007	var() bool bNoSparks;
00008	
00009	simulated function PreBeginPlay()
00010	{
00011		if(!bNoSparks)
00012		{
00013			sparks = spawn(class'GlowplantSparks',self,,Location);
00014			sparks.RemoteRole = ROLE_None;
00015		}
00016	
00017	//	AttachActorToJoint(sparks, 2);
00018	}
00019	
00020	function Destroyed()
00021	{
00022		if (sparks!=None)
00023		{
00024	//		DetachActorFromJoint(2);
00025			sparks.Destroy();
00026		}
00027		Super.Destroyed();
00028	}
00029	
00030	defaultproperties
00031	{
00032	     RotAngle=2000
00033	     TouchFactor=0.050000
00034	     HitFactor=0.250000
00035	     BrushSound=Sound'OtherSnd.Bush.bush01'
00036	     LODCurve=LOD_CURVE_CONSERVATIVE
00037	     CollisionRadius=28.000000
00038	     CollisionHeight=36.000000
00039	     Skeletal=SkelModel'plants.GlowPlant'
00040	}

End Source Code