Okay I kept playing around with it and I came up with this:
PlayerController grabs the GoalScore variable and stores it as GameGoalScore...
Code:
class MTPlayerController extends UTPlayerController;
var int GameGoalScore;
simulated function PostBeginPlay()
{
super.PostBeginPlay();
GameGoalScore = WorldInfo.Game.GoalScore;
}
Then in the GFxMoviePlayer I call on that variable instead....
Code:
class MonkeyGFxHUD extends GFxMoviePlayer;
var string MaxScoreString;
var GFxObject MaxScoreTF;
function Init2()
{
Start();
Advance(0.f);
MaxScoreTF = GetVariableObject("_root.scorebar_mc.maxscore_txt");
MaxScoreString = string(MTPlayerController(GetPC()).GameGoalScore);
MaxScoreTF.SetString("text", MaxScoreString);
}
(All other code has been left out)
That works but it doesn't seem very stable because it's asking for the variable from the PlayerController and not straight from the source. Does anyone know of a cleaner way? Cheers
Bookmarks