1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Two Factor Authentication is now available on BeyondUnreal Forums. To configure it, visit your Profile and look for the "Two Step Verification" option on the left side. We can send codes via email (may be slower) or you can set up any TOTP Authenticator app on your phone (Authy, Google Authenticator, etc) to deliver codes. It is highly recommended that you configure this to keep your account safe.

Runtime theme song

Discussion in 'Level Design, Skinning and Modelling' started by Keith, Mar 27, 2006.

  1. Keith

    Keith New Member

    Joined:
    Apr 15, 2005
    Messages:
    11
    Likes Received:
    0
    When you start UT2004 you get the music playing in the background while you select which map to play. Can I have Runtime play a tune while I am deciding which map to play?
     
  2. Angel_Mapper

    Angel_Mapper Goooooooats

    Joined:
    Jun 17, 2001
    Messages:
    3,532
    Likes Received:
    3
    Yes you can. The command you want (from a menu class) is:

    PlayerOwner().PlayMusic( string Song, float FadeInTime );
     
  3. Angel_Mapper

    Angel_Mapper Goooooooats

    Joined:
    Jun 17, 2001
    Messages:
    3,532
    Likes Received:
    3
    Menu to the commands? You would just place that in whatever function you assigned to OnOpen in your menu class.

    For example:

    Code:
    function MyOnOpen()
    {
        PlayerOwner().PlayMusic("MainMenuTheme", 2);
    }
    
    defaultproperties
    {
        OnOpen=MyOnOpen
    }
    And please don't pm me with questions. I don't like being a captive audience, and if anyone else is looking through the forums it'd be nice to have all the questions and answers out here.
     

Share This Page