Hey. So I would like to access a stat from ServerStStats (serverperks mutator) from inside the veterency. Now I can't seem to figure out where exactly the KFPI would go so I can access the player's stat.
My current code inside the AllowWeaponInTrader function:
Now I know this will fail as I haven't made the stat yet but also, I need to know how to change the last part of the second if to get the player's stats. Never been good with getting that sort of information.
My current code inside the AllowWeaponInTrader function:
Code:
if ( class<Fs_WeaponBase>(Weapon).default.CamoID => 0 )
{
// Shimmering Water
if ( class<Fs_WeaponBase>(Weapon).default.CamoID == 1 && ServerStStats(KFStatsAndAchievements).MyStatsObject.DLCShimmering == True )
return true;
else return false;
}
Now I know this will fail as I haven't made the stat yet but also, I need to know how to change the last part of the second if to get the player's stats. Never been good with getting that sort of information.