Jump to content

Add a custom image to the spawn box


machine6fd

Recommended Posts

  On 1/25/2015 at 7:09 PM, Schloti1993 said:

Lazy people, Chernarus with 4 Walls.

 

Thank you, but may I ask... which one is the wall opposite the original poster lol? my head is mealting

 

Also, can I put another picture on a 2nd poster?

 

Ignore this I worked it out lol, It was kind of a stupid question now I think about it lol

Link to comment
Share on other sites

Lazy people! Altis mission.sqm 

 

 

  Reveal hidden contents

Link to comment
Share on other sites

you need a converter to make them .paa which will be the best option if you want a small file. Also depending on the software you use lowering the quality of the .jpg will lower the size. Same with changing the pixel size of the image will lower the file size. A smaller image will still fit on the tile but will strech once it reaches a smaller size than the UserTexture10m_F 

Link to comment
Share on other sites

Hi! anybody help me... 

if i use on this script 

USE_GREENZONE = true; //use scripts true/false
SET_MARKER = true;    //set visual markers on the map true/false

// _zonecoord =  [[_center],_radius,_name,_string],[[_center],_radius,_name,_string]];
_zonecoord =
[
	[[13326.5,14515.2,0],150, 'Center', true],// Center GreenZone
	[[6192.46,16834,0],150, 'West', true],// West GreenZone
	[[18451.9,14278.1,0],150, 'East', true]// East GreenZone
];

// Sign_Sphere200cm_F - big orange sphere
// Sign_Arrow_Green_F - big green down arrow
// Sign_Arrow_Direction_Green_F - mid green center arrow

if (isServer) exitWith 
{
	if (USE_GREENZONE) then // check true
	{
		{
			_center = _x select 0;
			_radius = _x select 1;
			_name = _x select 2;	
			_arrow = _x select 3;

			if (_arrow) then // check true
			{
				for '_i' from 0 to 360 step (270 / _radius)*2 do
				{
					_location = [(_center select 0) + ((cos _i) * _radius), (_center select 1) + ((sin _i) * _radius),0];
					_dir = ((_center select 0) - (_location select 0)) atan2 ((_center select 1) - (_location select 1));
					_object = createVehicle ['Sign_Arrow_Direction_Green_F', _location, [], 0, 'CAN_COLLIDE'];  // set sign model
					_object setDir _dir;
				};

			if (SET_MARKER) then { // check true

				_marker = createMarker [format["GreenZone:%1", _name], _center];
				_marker setMarkerType "selector_selectedMission";
				_marker setMarkerText " Safe green zone";
				_marker setMarkerColor "ColorRed";
				_marker = createMarker [format["GreenZone1:%1", _name], _center];
				_marker setMarkerShapeLocal "ELLIPSE";
				_marker setMarkerTypeLocal  "Empty";
				_marker setMarkerColorLocal "ColorGUER";
				_marker setMarkerBrushLocal "Solid";
				_marker setMarkerSize [_radius, _radius];
			};
		};
	 } forEach _zonecoord ; 
    };                                                                                       
};

this code (virtual sign change on SignAd_SponsorS_F and custom texture) - 

_object = createVehicle ['SignAd_SponsorS_F', _location, [], 0, 'CAN_COLLIDE'];
_object setVehicleInit 'this setObjectTexture [0,''Addons\SafeZones\sign.paa''];';

not work in Arma 3 but work Arma 2, when my bug.

Link to comment
Share on other sites

any reason why this wouldn't work for a billboard?

 

    class Vehicles
    {
        items=2;
        class Item0
        {
            position[]={6015.6099,7823.9102,6.1025481}; // For Altis us {23600.611,2.8548489,17990.768}
            azimut=-139.906;
            offsetY=5;
            id=1;
            side="EMPTY";
            vehicle="Land_Billboard_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""Gunshop.jpg""]"; //Texture is 512x1024
        };
        class Item1
        {
            position[]={1024.4421,5.8671093,2033.679}; // For Altis us {23600.611,2.8548489,17990.768}
            azimut=360.40302;
            offsetY=5;
            id=2;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""spawnbox2.jpg""]";
        };
    };

Link to comment
Share on other sites

  On 2/21/2015 at 11:26 AM, Liqu1dShadow said:

any reason why this wouldn't work for a billboard?

 

 

must be wrong this line

position[]={6015.6099,7823.9102,6.1025481}; // For Altis us {23600.611,2.8548489,17990.768}

try

position[]={6015.6099,6.1025481,7823.9102}; // For Altis us {23600.611,2.8548489,17990.768}

cords must be X Z Y 

Link to comment
Share on other sites

  On 2/21/2015 at 11:38 AM, SadBoy1981 said:

must be wrong this line

position[]={6015.6099,7823.9102,6.1025481}; // For Altis us {23600.611,2.8548489,17990.768}

try

position[]={6015.6099,6.1025481,7823.9102}; // For Altis us {23600.611,2.8548489,17990.768}

cords must be X Z Y 

ahhhh, thank you,

 

Would the texture and billboard combo work though?

Link to comment
Share on other sites

My image doesn't show up. Chernarus map, all 4 spawn box walls, .paa image file. Any ideas what i'm doing wrong? What I've added to the mission.sqm below. Any and all help is much appreciated!

 

  Reveal hidden contents

class Vehicles

    {
        items=4;
        class Item0
        {
            position[]={1024.3561,5.8548489,2013.7371};
            azimut=180.4026;
            offsetY=5;
            id=100;
          side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""logo.paa""]";
        };
        class Item1
        {
            position[]={1024.4421,5.8671093,2033.679};
            azimut=360.40302;
            offsetY=5;
            id=101;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""logo.paa""]";
        };
        class Item2
        {
            position[]={1008.2788,5.7462015,2024.0359};
            azimut=270.40302;
            offsetY=5;
            id=102;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""logo.paa""]";
        };
        class Item3
        {
            position[]={1041.3992,5.9826612,2023.9299};
            azimut=90.403;
            offsetY=5;
            id=103;
            side="EMPTY";
            vehicle="UserTexture10m_F";
            skill=0.60000002;
            init="this setObjectTexture [0, ""logo.paa""]";
        };
    };

};

Link to comment
Share on other sites

Hey,

 

I have a little problem with my image. As you can see on the picture it is only white but it has to be some text and nice pictures in it. Does anyone of you guys have an idea what exactly is happening? I copied the image.jpg in the root folder of my PBO file.

 

http://cloud-4.steamusercontent.com/ugc/707401214552800857/63457B533ECDCEFC5484E51F6B40676B63DF5207/

Link to comment
Share on other sites

ok here the infos:

 

snippet of my mission.sqm

					side = "CIV";
					vehicle = "VirtualMan_EPOCH";
					player = "PLAY CDG";
					leader = 1;
					skill = 0.6;
				};
			};
		};
	};
	class Vehicles
	{
		items = 1;
		class Item0
		{
			position[] = {23600.611,2.8548489,17990.768};
			azimut = 180.4026;
			offsetY = 5;
			id = 1;
			side = "EMPTY";
			vehicle = "UserTexture10m_F";
			skill = 0.6;
			init = "this setObjectTexture [0, ""image.jpg""]";
		};
	};
	class Markers
	{
		items = 3;
		class Item0

The file "image.jpg" is in the root of the PBO, so next to my mission.sqm. The resolution is 800x800 pixel and ~ 650 KB

Link to comment
Share on other sites

  • vbawol unpinned this topic

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...