I've made my own perk, and I have been able to load it into game in Solo Mode just fine with the code:
However, that does not work in multiplayer on my server.
So I'm trying to find different ways to load my 'CustomKFVetDemolitions ' class like with the code I used to load my ' CustomKFRandomItemSpawn ' class which worked perfectly online,
but when I did the same with my custom perk class, it did not even work in Solo.
The code:
I don't see anything wrong with the code, it should work like it did with my custom RandomItemSpawn class, but it dosn't.
Is there any other ways I could try?
Code:
KFGameType(Level.Game).default.LoadedSkills[6] = class'PackageNameHere.CustomKFVetDemolitions';
However, that does not work in multiplayer on my server.
So I'm trying to find different ways to load my 'CustomKFVetDemolitions ' class like with the code I used to load my ' CustomKFRandomItemSpawn ' class which worked perfectly online,
but when I did the same with my custom perk class, it did not even work in Solo.
The code:
Code:
function bool CheckReplacement(Actor Other, out byte bSuperRelevant)
{
local Vector SpawnLoc;
if ( Other.Class == class'KFRandomItemSpawn' )
{
SpawnLoc = Other.Location;
Other.Destroy();
Spawn(class'CustomRandomItemSpawn',,,SpawnLoc);
return true;
}
else if ( Other.Class == class'KFVetDemolitions' )
{
SpawnLoc = Other.Location;
Other.Destroy();
Spawn(class'CustomKFVetDemolitions',,,SpawnLoc);
return true;
}
return Super.CheckReplacement(Other,bSuperRelevant);
}
I don't see anything wrong with the code, it should work like it did with my custom RandomItemSpawn class, but it dosn't.
Is there any other ways I could try?