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..
z3akx Offline
Junior Member

Posts: 15
Threads: 4
Joined: Dec 2011
Reputation: 0
#3
RE: I can't randomize my loading screen entries..

(04-29-2012, 03:10 PM)FragdaddyXXL Wrote: 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?
Oh it worked many thanks man Big Grin

and yea my .lang is XML Smile
04-29-2012, 03:21 PM
Find


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



Users browsing this thread: 1 Guest(s)