Compile Error extending KF Weapon ServerChangeFireMode

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

0815Hunter

FNG / Fresh Meat
Oct 7, 2013
12
0
0
Got following Problem in my code:

class Glock18c extends KFWeapon;

replication
{
reliable if(Role < ROLE_Authority)
ServerChangeFireMode;
}
.....
Error while compiling: Function ServerChangeFireMode is defined in base class KFWeapon.
 
Last edited:

0815Hunter

FNG / Fresh Meat
Oct 7, 2013
12
0
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;
}
 
Last edited:

Massacrer

Member
Mar 26, 2012
936
5
18
hzgaming.net
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.