User Tools

Site Tools


arma2:missions:texture_on_mission

ArmA 2 How To Display Texture During Mission

ArmA 2 Forum, ArmA 2 Home, ArmA 2 Config, ArmA 2 File Formats, ArmA 2 Missions, ArmA 2 3D Modeling, ArmA 2 Scripting, ArmA 2 Terrain, ArmA 2 Texturing, 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];
arma2/missions/texture_on_mission.txt · Last modified: 2024/08/01 21:32 by snakeman

Except where otherwise noted, content on this wiki is licensed under the following license: CC Attribution-Share Alike 4.0 International
CC Attribution-Share Alike 4.0 International Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki

All PMC web site download services are temporarily suspended until web site yearly fees have been recovered, want to download addons/mods? Then Support PMC.

If you are grateful for all the work PMC has done in the past 25 years, use Support PMC page.