Jump to content
Sign in to follow this  
Tony.G

Arma 2 trigger help?

Recommended Posts

how can i get the text that show up at the bottom right that says (Example) Chernogorsk?

Share this post


Link to post
Share on other sites

You need to add a new dialog in DESCRIPTION.EXT.

 

Something like this:

In description.ext:

class ImperialTxt {
	type = CT_STATIC;
	idc = -1;
	style = ST_LEFT;
	x = 0.0;
	y = 0.0;
	w = 0.3;
	h = 0.03;
	sizeEx = 0.023;
	colorBackground[] = {0.5, 0.5, 0.5, 0.75};
	colorText[] = {0, 0, 0, 1};
	font = "Zeppelin32";
	text = "";
};

#include "ImperialDialogs\ImpDiags.hpp" // making reference to ImpDiags.hpp in ImperialDialogs Directory.

Make a directory called "ImperialDialogs" and make a file inside called "ImpDiags.hpp".

Open ImpDiags.hpp and put this:

 

class ImpDiag1 {
	idd=-1;
	movingEnable=0;
	duration=10;
	fadein=0.2;
	fadeout=0.3;
	name="ImpDiag1";
	onLoad = "uiNamespace setVariable ['ImpDiag1', _this select 0]";
	class controls {
		class ImpDiag1: ImperialTxt {
			idc=50;
			style="16+2+512";
			lineSpacing=0.95;
			text="Halt!. You're in a Resctricted Area managed by the Galactic Empire!";
			x=0.35;y=0.14; // position for the text
			w=0.4;h=0.2; // size
			colorBackground[]={0,0,0,0};
			colorText[]={0.4,0,1,1};
			size=0.19;
			sizeEx = 0.039; // Size
		};
	};
};

Now make a call in your mission or just make a trigger in your editor to check it adding this line in "On ACT":

 

10 cutRsc ["ImpDiag1","PLAIN",1]; // Shows the text on the screen in the pre-designated position.

The text will show ...and end.

 

 

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  

×