• Please make sure you are familiar with the forum rules. You can find them here: https://forums.tripwireinteractive.com/index.php?threads/forum-rules.2334636/

Code Compile Error extending KF Weapon ServerChangeFireMode

If I delete the replication it doesnt understand the { : Unexpected {
Do you mean to remove the hole thing?(replication{reliable if(Role < ROLE_Authority) ServerChangeFireMode;})

Forgot to add the line before:

class Glock18c extends KFWeapon;

var bool bSlowFireRate;

replication
{
reliable if(Role < ROLE_Authority)
ServerChangeFireMode;
}
 
Last edited:
Upvote 0
If I delete the replication it doesnt understand the { : Unexpected {
Do you mean to remove the hole thing?(replication{reliable if(Role < ROLE_Authority) ServerChangeFireMode;})

Forgot to add the line before:

class Glock18c extends KFWeapon;

var bool bSlowFireRate;

replication
{
reliable if(Role < ROLE_Authority)
ServerChangeFireMode;
}

Remove the ones in Red.... However, if you looked in the KFWeapon.uc, you would have realized what to remove and why you need to do it.
 
Upvote 0