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
Script Help Functions aren't functioning properly
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#2
RE: Loading screen text?

The function:
void SetupLoadScreen(string&asTextCat, string&asTextEntry, int alRandomNum, string&asImageFile);

Determines which loading screen will be shown when changing maps.

asTextCat - the category of the loading text in the .lang file to be shown on the loading screen
asTextEntry
- the entry in the .lang file
alRandomNum
- if greater 1, then it will randomize between 1
and alRandom for each LoadScreen giving entry the suffix XX (eg 01). If
< =1 then no suffix is added
asImageFile
- the image to be shown (optional)




So in the .hps, do this:

void OnLeave()
{
SetupLoadScreen("LoadText", "01_mapLoadText", 0, "image.jpg");
}
(This post was last modified: 07-06-2012, 05:10 PM by Statyk.)
07-06-2012, 05:09 PM
Find


Messages In This Thread
RE: Loading screen text? - by Statyk - 07-06-2012, 05:09 PM
RE: Loading screen text? - by Kazakarumariou - 07-06-2012, 05:22 PM
RE: Loading screen text? - by Statyk - 07-06-2012, 05:31 PM



Users browsing this thread: 1 Guest(s)