Jump to content
pognivet

Intel with no image

Recommended Posts

Is there a way to make an intel item that has no image? Only text? Thanks.

Share this post


Link to post
Share on other sites

What kind of intel are you talking about?

Inspectable leaflet or documents that put a picture in your diary under intel.

 

Inspectable leaflet

["init", [this, "a3\weapons_f_orange\ammo\data\leaflet_default_co.paa", "Text message"]] call BIS_fnc_initLeaflet; 

In a Props > Things > Intel > Leaflet# will give it the holdAction to inspect, with a blank image and "Text message" displayed on Read.

More info can be found in this thread.

 

Intel objects

Instead of using a e.g Props > Things > Intel > Documents  use its non intel variant Props > Things > Office > File(Documents) and add your own intel action supplying an empty image.

if (isServer) then {
	//Diary picture
	this setVariable ["RscAttributeDiaryRecord_texture","a3\ui_f\data\igui\cfg\actions\clear_empty_ca.paa", true];
	//Diary heading and text
	[this,"RscAttributeDiaryRecord",["Top Secret Docs","These Docs outline the enemies defenses",""]] call BIS_fnc_setServerVariable;
	//Diary entry transmitted too when picked up.. follows BIS_fnc_MP rules
	this setVariable ["recipients", west, true];
	//Sides that can interact with intelObject
	this setVariable ["RscAttributeOwners", [west], true];
};
if ( hasInterface ) then {
	this addAction [
		"Pick up Intel", //<-- YOUR TITLE
		{[_this,"action"] spawn BIS_fnc_initIntelObject;},
		[],
		10,
		true,
		true,
		"",
		"isplayer _this && {_this distance _target < 2} && {(side group _this) in (_target getvariable ['RscAttributeOwners',[west,east,resistance,civilian]])}"
	];
};

This is exactly the same as the Intel variant except you can supply your own parameters.

More info can be found in this thread.

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

×