Tripwire Interactive Forums

  • 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/
Hi there..
I started coding today and found the first problem with the classes. I wanted to ask, which perk is used to give each perk a replacement weapon, for example another kind of knife or a new high power welder. How do i ask which perk is used?

Code:
function ModifyPlayer(Pawn Other)
{
    if (KFPlayerController.NewPerkClass == class'KFVetCommando')
    {
        Other.CreateInventory("KFMod.Bat");
        Super.ModifyPlayer(Other);
    }
}

Hope you could help me, because I'm completly new at the unreal engine, I only worked with the source engine so far, but i want to do something for my loved Killing Floor....