Announcement

Collapse
No announcement yet.

when a game is launched from the menu?

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

    when a game is launched from the menu?

    where is the bit of code that actualy launches the game?
    im guessing things like gametype, number of bots and stuff is taken from an array, the array is filled from the scaleform buttons in the menu.

    so where does it all come together and get fired?

    ill be greatful for any insight into any aspect of this process

    thanks

    #2
    Have a look at GFXUDKFrontEnd_InstanceAction.uc. It is very small, and I believe it has everything you are looking for.

    Comment


      #3
      thanks very much indeed

      its this bit that does it if anyone else is interested
      Code:
      // Start the game.
      	GameExec = "open " $ GetStringFromMarkup("<Registry:SelectedMap>") $ "?game=" $ GetStringFromMarkup("<Registry:SelectedGameMode>") $ URL;
      	`Log("UTUIFrontEnd: Starting Game..." $ GameExec);
      	ConsoleCommand(GameExec);

      Comment

      Working...
      X