Results 1 to 2 of 2
  1. #1
    legacy-Slayerizer
    Guest

    Default 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. #2
    legacy-Slayerizer
    Guest

    Default

    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.


 

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Copyright ©2009-2011 Epic Games, Inc. All Rights Reserved.
Digital Point modules: Sphinx-based search vBulletin skin by CompletevB.com.