Announcement

Collapse

The Infinity Blade Forums Have Moved

We've launched brand new Infinity Blade forums with improved features and revamped layout. We've also included a complete archive of the previous posts. Come check out the new Infinity Blade forums.
See more
See less

Custom PlayerReplicationInfo

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

  • 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
    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

    Comment

    Working...
    X