Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
.Lang File Help I can't randomize my loading screen entries..
FragdaddyXXL Offline
Member

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
#2
RE: I can't randomize my loading screen entries..

Instead of using the function's random, maybe you could just create a random int variable named something like "i".

Generate a random number and store the value in "i".

then it should look like

void Level_WindowForest(string &in asEntity)

{
int i = RandInt(1, 2);
ChangeMap("Forest", "PlayerStartArea_3", "", "");
SetupLoadScreen("LoadingText", "Forest_0"+i, 0, "Dark_Forest2.jpg");

}

Wait, how exactly is your .lang file set up. XML format and all?

Dark Seclusion Here
(This post was last modified: 04-29-2012, 03:11 PM by FragdaddyXXL.)
04-29-2012, 03:10 PM
Find


Messages In This Thread
RE: I can't randomize my loading screen entries.. - by FragdaddyXXL - 04-29-2012, 03:10 PM



Users browsing this thread: 1 Guest(s)