Announcement

Collapse
No announcement yet.

Cast WorldInfo.Game from MobileMeneScene

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

    Cast WorldInfo.Game from MobileMeneScene

    Hi,

    This should be a straight forward one but not having any luck. How do I cast a GameInfo object inside a MobileMenuScene?

    The following doesn't work..

    Code:
    TestGame(WorldInfo.Game).SetFunction();
    I have looked on Google and tried a few different ways of casting with no such luck.

    Any help would be appreciated,
    Gavism

    #2
    you can get worldinfo from objects like this
    Code:
    local WorldInfo WorldInfo;
       
      WorldInfo = class'WorldInfo'.static.GetWorldInfo();

    Comment


      #3
      Thanks for that tegleg, that did the trick. I did have to then cast a gameinfo from the world class in order to grab the gameinfo functionality.

      Thanks again.

      Comment

      Working...
      X