class MyAttachment_FireSword01Light extends MyAttachment_FireSword01;
//var UDKSkeletalMeshComponent FireSword01Mesh;
var ParticleSystem Sword01Flame;
var Color LightColor;
var float LightScale;
var SpotLightComponent LightAttachment;
//var SkeletalMeshComponent FireSword01Mesh;
simulated function PostBeginPlay()
{
LightAttachment = new(self)class'SpotLightComponent';
LightAttachment.SetLightProperties(LightScale, LightColor);
LightAttachment.CastDynamicShadows = true;
LightAttachment.SetEnabled(true);
LightAttachment.InnerConeAngle = 0;
LightAttachment.OuterConeAngle = 360;
LightAttachment.Radius = 710.0;
LightAttachment.FalloffExponent = 5;
//particles
Sword01Flame=ParticleSystem'BloggysAdventureEffect sPack1.Flame01';
FireSword01Mesh=UDKSkeletalMeshComponent'ThirdPers onMeshy';
WorldInfo.MyEmitterPool.SpawnEmitterMeshAttachment (Sword01Flame,FireSword01Mesh,'EffectSpawn',true,) ;
if ( LightAttachment != None )
{
SkeletalMeshComponent(Mesh).AttachComponentToSocke t(LightAttachment,EffectSpawn);
}
super.PostbeginPlay();
}
simulated function CustomFire()
{
if ( LightAttachment != None )
{
if (LightAttachment.bEnabled)
{
LightAttachment.SetEnabled(false);
}
else
LightAttachment.SetEnabled(true);
}
}
defaultproperties
{
Begin Object class=SkeletalMeshComponent Name=ThirdPersonMeshy
SkeletalMesh=SkeletalMesh'BloggysAdventureItemsPac k1.Mesh.Sword01'
End Object
FireSword01Mesh = ThirdPersonMeshy;
LightColor=(R=192,G=160,B=24)
LightScale=3
}
Bookmarks