====== ArmA 2 How To Display Texture During Mission ======
[[https://www.pmctactical.org/forum/viewforum.php?f=50|ArmA 2 Forum]], [[:arma2|ArmA 2 Home]], [[arma2:config|ArmA 2 Config]], [[arma2:file_formats|ArmA 2 File Formats]], [[arma2:missions|ArmA 2 Missions]], [[arma2:modeling|ArmA 2 3D Modeling]], [[arma2:scripting|ArmA 2 Scripting]], [[arma2:terrain|ArmA 2 Terrain]], [[arma2:texturing|ArmA 2 Texturing]], [[arma2:tools|ArmA 2 Tools]]
Create a file called description.ext in your mission folder. Copy the following code over:
class RscTitiles
{
class TAG_bloodScreen
{
idd = -1;
duration = 10; //Displayed for 10 seconds
class Controls
{
class Splatter1
{
type = 0; //CT_STATIC
style = 0x800; //ST_KEEP_ASPECT_RATIO
x = "safeZoneX + 0.1";
y = "safeZoneY + 0.1";
w = 0.2;
h = 0.2;
text = "splatter1.paa"; //File name
colorText[] = {1,1,1,0.8}; //Last number is alpha
};
class Splatter2 : Splatter1 //Inherit values from Splatter1
{
x = 0.5;
y = 0.5;
text = "splatter2.paa";
};
};
};
};
Note that any time you edit description.ext you have to re-load the mission.
Now, to display the resource just use the following somewhere in your script:
cutRsc ["TAG_bloodScreen", "PLAIN", 0];