This is probably a silly scripting error but here it goes. I have a class called ScientistClass. It spawns a scientist. I also have a subclass of ScientistClass called ScientistDesk. This should spawn a scientist sitting at a desk. Instead it spawns a scientist sitting at a desk, which sits on top of a scientist. Basically it calls both mesh's, animations and all, instead of modifying ScientistClass into ScientistDesk. My first guess is the SMesh variable, because I don't really understand it and I just modified it into SMeshDesk. I didn't write all of this because I'm not that good but I'm tasked with troubleshooting it. Thanks in advance for any help.
This is the ScientistClass
class ScientistClass extends Pawn
placeable;
var DynamicLightEnvironmentComponent LightEnvironment;
DefaultProperties
{
Begin Object Class=DynamicLightEnvironmentComponent Name=MyLightEnvironment
bSynthesizeSHLight=TRUE
bIsCharacterLightEnvironment=TRUE
bUseBooleanEnvironmentShadowing=FALSE
End Object
Components.Add(MyLightEnvironment)
LightEnvironment=MyLightEnvironment
Begin Object class=SkeletalMeshComponent Name=SMesh
SkeletalMesh=SkeletalMesh'Scientist.SkeletalMesh.S cientist_Mesh'
AnimTreeTemplate=AnimTree'Scientist.Scientist_Tree '
AnimSets(0)=AnimSet'Scientist.Scientist_Idles'
bAcceptsLights=true
Translation=(Z=-58);
LightEnvironment=MyLightEnvironment
CastShadow=true
CollideActors=true;
End Object
Mesh=SMesh
Components.Add(SMesh)
groundspeed=150
DrawScale=1.4
}
And this is the ScientistDesk
class ScientistDesk extends ScientistClass
placeable;
DefaultProperties
{
Begin Object class=SkeletalMeshComponent Name=SMeshDesk
SkeletalMesh=SkeletalMesh'Scientist.SkeletalMesh.S cientistDesk_Mesh'
AnimTreeTemplate=AnimTree'Scientist.ScientistDesk_ AnmTree'
AnimSets(0)=AnimSet'Scientist.ScientistDesk_AnmSet '
LightEnvironment=MyLightEnvironment1
End Object
Mesh=SMeshDesk
Components.Add(SMeshDesk)
DrawScale=1.4
}



Reply With Quote

Bookmarks