Jump to content

Add a custom image to the spawn box


machine6fd

Recommended Posts

Add a custom image to the spawn box.. You can put what ever image you want in this and make it your own :)

 

What mine looks like.

6r3Uvkz.jpg

 

Add this to your mission.sqm directly above "class Markers"

class Vehicles
	{
		items=1;
		class Item0
		{
			position[]={1024.3561,5.8548489,2013.7371}; // For Altis us {23600.611,2.8548489,17990.768}
			azimut=180.4026;
			offsetY=5;
			id=1;
			side="EMPTY";
			vehicle="UserTexture10m_F";
			skill=0.60000002;
			init="this setObjectTexture [0, ""image.jpg""]";
		};
	};

Save any image,jpg you want in your mission root folder. Make it square or it will stretch or warp. Mine is 800x800px but i'm sure more or less wont hurt, The user texture will not grow or shrink but the image will. 

 

*EDIT* Removed set texture not needed per VEMP whom I trust knows what hes talking about :)

 

*EDIT #2*
 

Alternative method to adding the image to spawn box by: Halvhjearne

 

1. Create a file called: Debugpic.sqf

2. Paste this code inside.
   

/*
        DebugPic script
        by Halv, idea from machine6fd's mission.sqm version
*/
 
//Change to your picture/path below
_pic = "custom\problemsolving.jpg";
 
 
//======================== Do not touch anything below this point ========================\\
if(isServer)then{
        diag_log "[DebugPic]: Waiting for 'Debug_static_F' to be build ...";
        waitUntil{count(nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30]) > 0};
        _list = nearestObjects [getMarkerPos "respawn_west", ["Debug_static_F"], 30];
        _box = _list select 0;
        _rPos = _box modelToWorld [-0.226563,-9.76563,-5.04319];
        _rDir = (getDir _box)+180;
        _obj = createVehicle ["UserTexture10m_F", _rPos, [], 0, "CAN_COLLIDE"];
        _obj setDir _rDir;
        _obj setPos _rPos;
        _obj enableSimulation false;
        _obj setObjectTextureGlobal [0,_pic];
        diag_log format["[DebugPic]: build texture in %1 @ [%2,%3] with texture '%4'",worldName,_rPos,_rDir,_pic];
};

3. save and upload to mission file.

4. add image file "custom\problemsolving.jpg" or rename.

 

Working on Altis, Chernarus, and Bornholm (confirmed)

Original post can be found

Link to comment
Share on other sites

Setting the model of the player to the picture? ^^ looks strange to me ^^

 

Pretty sure this is code that shouldn't be called 

 

 

But nice addition for the rest! ^^

I read you had to set it for multiplayer.... Honestly I didn't try it without.... I'll change it and see if it makes a difference and report back.... When I'm awake. After 2/3 gallons of coffee this morning :)

Link to comment
Share on other sites

For Altis map coordinates change this (Chernarus coords) mission.sqm line  

position[]={1024.3561,5.8548489,2013.7371};

 

I changed it as recommended to

 

position[]={23600.611,3.19,18000.768};

 

 

 

Does sit in the middle of the room but it definitely does stand out :)

 

 

 

Thanks machine6fd

 

yeah it needs to be adjusted the respawn west will put it in the center of the box :(

 

@ree

Yes it's facing the wall opposite the portal. I did that to help streamers to remain hidden :) 

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...