Announcement

Collapse
No announcement yet.

PostBeginPlay not working

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    PostBeginPlay not working

    class BGPlayer extends BGEnemyPawn;

    var SkeletalMesh defaultMesh;
    var array<AnimSet> defaultAnimSet;
    var CameraAnim ca;


    simulated function PostBeginPlay()
    {
    local BGPlayerController pc;
    super.PostBeginPlay();

    SetPhysics(PHYS_Walking);
    //if (MyController == none)
    //{
    // MyController = Spawn(class'BGPlayerController', self);
    // MyController.SetPawn(self);
    //}
    Mesh.SetSkeletalMesh(SkeletalMesh'Test.grup_01.tub e');
    Mesh.AnimSets=defaultAnimSet;
    //Mesh.SetAnimTreeTemplate(AnimTree'doga_game_charac ters.Gun.SniperTree');
    pc=BGPlayerController(self.Controller);
    WorldInfo.Game.Broadcast(self,'TestShake');
    pc.PlayCameraAnim(ca);
    }


    defaultproperties
    {
    defaultMesh=SkeletalMesh'Test.grup_01.tube'
    // PhysicsAsset=PhysicsAsset'CH_AnimCorrupt.Mesh.SK_C H_Corrupt_Male_Physics'
    // AnimtreeTemplate=AnimTree'doga_game_characters.Gun .SniperTree'
    defaultAnimSet(0)=AnimSet'TestAnimPhys.grup_01.tub e_anim'
    ca=CameraAnim'Envy_Effects.Camera_Shakes.C_VH_Deat h_Shake'

    //TransCameraAnim[0]=CameraAnim'Envy_Effects.Camera_Shakes.C_VH_Death_ Shake'
    //TransCameraAnim[1]=CameraAnim'Camera_FX.ShockRifle.C_WP_ShockRifle_H it_Shake'
    Begin Object Name=WPawnSkeletalMeshComponent

    SkeletalMesh=SkeletalMesh'Test.grup_01.tube'
    // PhysicsAsset=PhysicsAsset'CH_AnimCorrupt.Mesh.SK_C H_Corrupt_Male_Physics'
    AnimSets(0)=AnimSet'TestAnimPhys.grup_01.tube_anim '
    // AnimtreeTemplate=AnimTree'doga_game_characters.Gun .SniperTree'
    End Object
    mesh=WPawnSkeletalMeshComponent;
    Components.Add(WPawnSkeletalMeshComponent)


    }



    this is my code of pawn class....please help me out....

    #2
    Please use the [ code] tags next time.

    Are you sure PostBeginPlay() is not working? Did you try logging something in there?

    Comment


      #3
      Looks like UE3 UnrealScript code. Please post your code in the UDK or UT3 forums not UT2004. And use Code tags next time.

      Comment

      Working...
      X