Jump to content
  • 0

Add texture help


XMortX

Question

Anyone know how to add a picture to the billboard called in this script?
looked at the way they do it in Altis life but doesn't seem to work the same way?
 
diag_log format['Custom %1 - Starting billboards.sqf',time];
 
_pos = [13102.2, 10143.8, 0];
_object = createVehicle ["Land_Billboard_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 185.52;
_object setPosATL _pos;

 

Cheers guys

Link to comment
Share on other sites

11 answers to this question

Recommended Posts

  • 0

when i was using this line -

 

_this setObjectTexture "images\test.jpg";

 

it wasnt working, i was doing this clientside though so would that make a difference?

 

i have moved all the additions server side now so i could go test it but is there something wrong in the syntax?

Link to comment
Share on other sites

  • 0

Ok so this is my code that still isnt working.... does the jpg have any special requirements? It places the billboard in the correct position but no texture?

 

_pos = [13102.2, 10143.8, 0];
_object = createVehicle ["Land_Billboard_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 185.52;
_object setPosATL _pos;
_object setObjectTextureGlobal [1, "mapcontent\textures\test.jpg"];
Link to comment
Share on other sites

  • 0

 

Ok so this is my code that still isnt working.... does the jpg have any special requirements? It places the billboard in the correct position but no texture?

 

_pos = [13102.2, 10143.8, 0];
_object = createVehicle ["Land_Billboard_F", _pos, [], 0, "CAN_COLLIDE"];
_object setDir 185.52;
_object setPosATL _pos;
_object setObjectTextureGlobal [1, "mapcontent\textures\test.jpg"];

 

 

try this instead:

_object setObjectTextureGlobal [0, "mapcontent\textures\test.jpg"];
Link to comment
Share on other sites

  • 0

 

try this instead:

_object setObjectTextureGlobal [0, "mapcontent\textures\test.jpg"];

haha ok my mistake, binary starts with a 0, rookie mistake my bad. The texture didnt appear but made it transparent, i assume iv got a mistake in the file path somewhere, ill let you know how i get on in about 2 mins

Link to comment
Share on other sites

  • 0

looked in the logs and it doesnt seem to matter where i put the texture file it cant load it? iv tried -

x\addons\a3_epoch_custom\mapcontent\textures\test.jpg

mapcontent\textures\test.jpg

textures\test.jpg

and even putting the texture in the root arma 3 folder.... any clues?

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