[ut2k3] static array replication

  • Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

CodePig

New Member
Apr 22, 2003
124
0
0
i'm trying to replicate a static array of integers in a class derived from Weapon, but it isn't working. if i switch to two integers, it works fine.

Code:
var int myArray[ 2 ];
var int myArray1, myArray2;

replication
{
     reliable if ( Role == Role_Authority )
          myArray, myArray1, myArray2;
}

anyone have an idea what i might be doing wrong?

thanks,
codepig
 

CodePig

New Member
Apr 22, 2003
124
0
0
i must be doing something really dumb. i wrote a simple test actor so i could isolate the problem... but it works just fine.

i should probably get some sleep :)

codepig