PDA

View Full Version : gamescore property?



legacy-Slayerizer
07-04-2003, 11:23 AM
hi fellow programmers
I set the property GoalScore=99 in my class's default properties. If I start the game up, the goal score is still using the default value from the InstantAction panel.

how can I change this?

note:
my class extends the xDeathMatch class

thanks again

legacy-Slayerizer
07-04-2003, 11:41 AM
I found how to do it.. I will be posting the code in case it can help somebody else.

I created a function PostBeginPlay it my class.
I call the parent.PostBeginPlay to make sure the game has
initialized correctly. I override the GoalScore param stored in the GRI.



function PostBeginPlay()
{
Super.PostBeginPlay();
GameReplicationInfo.GoalScore=99;
}



My new gametype is very fun, I will submit it to the contest for phase 1.