User Tools

Site Tools


arma2:missions:texture_on_mission

How to display texture during mission

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];
arma2/missions/texture_on_mission.txt · Last modified: 2011-07-01 12:30 (external edit)