Announcement

Collapse
No announcement yet.

gamescore property?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    gamescore property?

    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

    #2
    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.

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

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

    Comment

    Working...
    X