Jump to content
  • 0

Adding an image to a billboard?


PryMary

Question

Hey Guys,

 

OK I have one billboard that's at the Branibor trader on Origins tavi map.

 

I would like to replace the billboard image with a different one, however I have managed to surpass the issue where that specific trader items/object would not come into the server but the image still is not showing on the billboard!

 

I have this error in the RPT:

 

13:29:48 Error in expression <setObjectTexture [0, "safezone.jpg"]>
13:29:48   Error position: <[0, "safezone.jpg"]>
13:29:48   Error Missing ;
13:29:48 Error in expression <setObjectTexture [0, "safezone.jpg"]>
13:29:48   Error position: <[0, "safezone.jpg"]>
13:29:48   Error Missing ;
 
The line(s) in question are:
 
_vehicle_176 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Bilboard_Escape", [7391.1621, 4275.0376, -1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_176 = _this;
  _this setDir -48.645615;
  _this setVehicleInit "setObjectTexture [0, ""safezone.jpg""]";
  _this setPos [7391.1621, 4275.0376, -1.1444092e-005];
 };

The safezone.jpg is in the mission root, I am guessing this is the right place to put it or would I have to have it in the server.pbo (kinda makes sense too, but what path would I put?)

 

I have also tried this:

 

_vehicle_176 = objNull;
if (true) then
{
  _this = createVehicle ["MAP_Bilboard_Escape", [7391.1621, 4275.0376, -1.1444092e-005], [], 0, "CAN_COLLIDE"];
  _vehicle_176 = _this;
  _this setDir -48.645615;
  _this setVehicleInit "setObjectTexture [0, ""\z\addons\dayz_server\map_update\safezone.jpg""]";
  _this setPos [7391.1621, 4275.0376, -1.1444092e-005];
};
 
But results in this in the RPT, and does not show in-game:
 
13:50:57 Error in expression <setObjectTexture [0, "\z\addons\dayz_server\map_update\sa>
13:50:57   Error position: <[0, "\z\addons\dayz_server\map_update\sa>
13:50:57   Error Missing ;
13:50:57 Error in expression <setObjectTexture [0, "\z\addons\dayz_server\map_update\sa>
13:50:57   Error position: <[0, "\z\addons\dayz_server\map_update\sa>
13:50:57   Error Missing ;
 
I don't see where I am missing an ; 
 
Sorry for being noob, not added an image like this before!

 

Kind regards,

 

Pry

Link to comment
Share on other sites

Recommended Posts

  • 0

 

Didn't MACA have custom billboards with the ones you would see when traveling from Krutoy Cap to Berezino? the larger variety? I could be wrong it's been ages since I've been on a CCG server.

Side Question: How did you get infiSTAR working with the 3d.live.mission.... ?

 

Probably, the size of model does not matter, it's whether or not it has named texture selection defined.

I wasn't using Sandbird's live editor, what you saw there was actual local MP server with verifySignatures set to 0 in server config (don't do this on live server, lol). This allows people to run extra @mods without being kicked, like debug console for example.

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Advertisement
  • Discord

×
×
  • Create New...