Jump to content
Sign in to follow this  
icecreamshampoo

How do I make a title card before mission starts

Recommended Posts

How do I make the beginning of a mission a black screen with the mission name that then fades into the game. Im new and dont know where to start. all tutorials are 10 years old so i joined this forum. thankyou

Share this post


Link to post
Share on other sites
2 hours ago, icecreamshampoo said:

How do I make the beginning of a mission a black screen with the mission name that then fades into the game. Im new and dont know where to start. all tutorials are 10 years old so i joined this forum. thankyou

Multiple ways to do this but my favourite "good enough" method uses the titleText command.

 

1. Create a file called "initPlayerLocal" in your mission root folder, make it a .sqf file

 

2. In it put the following code:

private _titleString = "YourTextHere";
titleText [_titleString, "BLACK OUT", 0.01];
_titleString spawn {
   sleep 1; // Change this number to however long you wish the effect to stay before starting to fade out, recommend atleast 0.1 s
  
  titleText [_this, "BLACK IN", 1]; //Change the 1 here to however long you wish the fade in to take
};

 

Since v1.74 titleText also supports StructuredText (color, alignment, images and other fancy stuff).

If you wish to use those edit the text above by adding 2 true entries to the array of arguments for both titleText entries like so:

// First one
titleText [_titleString, "BLACK OUT", 0.01, true, true];
// Second one
titleText [_this, "BLACK IN", 1, true, true];

 

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
36 minutes ago, mrcurry said:

Multiple ways to do this but my favourite "good enough" method uses the titleText command.

 

1. Create a file called "initPlayerLocal" in your mission root folder, make it a .sqf file

 

2. In it put the following code:


private _titleString = "YourTextHere";
titleText [_titleString, "BLACK OUT", 0.01];
_titleString spawn {
   sleep 1; // Change this number to however long you wish the effect to stay before starting to fade out, recommend atleast 0.1 s
  
  titleText [_this, "BLACK IN", 1]; //Change the 1 here to however long you wish the fade in to take
};

 

Since v1.74 titleText also supports StructuredText (color, alignment, images and other fancy stuff).

If you wish to use those edit the text above by adding 2 true entries to the array of arguments for both titleText entries like so:


// First one
titleText [_titleString, "BLACK OUT", 0.01, true, true];
// Second one
titleText [_this, "BLACK IN", 1, true, true];

 

ty i copied it and changed Your text here to my mission name. and sleep to 10 seconds long. hopefully it works.

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×