• 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 I would like to change the way scoring is done

Skurcey

Grizzled Veteran
Sep 12, 2006
128
7
Belgium
But it seems i can t do basic inheritance

class BoBScore extends Mutator;

var BoBTeamGame myGame;

function PostBeginPlay()
{
super.PostBeginPlay();
Log("---------------> BoBScore Begin;");
myGame = Level.Game; // <-----<<< !!! ERROR HERE !!!
}

I'm trying to know when a player has been killed, but i'm not quiet sur if it s the right way
 
I just took a brief glance at your code, so forgive me if I forgot anything.

myGame = Level.Game; // <-----<<< !!! ERROR HERE !!!

I'm guessing this is failing when you're compiling? You need to cast Level.Game to your gametype class, so it should look like:

myGame = BoBTeamGame(Level.Game);

Hope that helps.
 
Upvote 0