Results 1 to 2 of 2
  1. #1
    legacy-[CG]Klepto
    Guest

    Default Custom PlayerReplicationInfo

    I want to make a custom PRI object but am confused as to where exactly I assign it to my players. Both pawn and Controller have PRI members. In my extended controller class I have the following

    PlayerReplicationInfoClass=Class'MyGame.myPRI'

    and then in my Gametype class i have

    UnitClass="MyGame.myUnit"
    PlayerControllerClassName="MyGame.myController"

    Do I need to modify my extended class of Pawn as well to include this new class? When I try and cast my units' PRI as myPRI I get accessed none errors in the game. Any thoughts on how to do this correctly?

  2. #2
    MSgt. Shooter Person
    Join Date
    Mar 2001
    Posts
    112

    Default

    No you only have to set in your controller / playercontroller class:

    PlayerReplicationInfoClass=class'MyNewPlayerReplic ationInfo'

    That should do it - since the Pawn only contains a reference to the playerreplicationinfo, but it is spawned in the controller class

    Are you sure your gametype uses your new controller class?

    Mfg, Vir@s


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.