XMortX Posted July 19, 2015 Report Share Posted July 19, 2015 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 More sharing options...
0 KiloSwiss Posted July 19, 2015 Report Share Posted July 19, 2015 Search this Forum for "setObjectTexture" Richie 1 Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted July 19, 2015 Report Share Posted July 19, 2015 i works exactly the same in all arma mods: https://community.bistudio.com/wiki/setObjectTextureGlobal Link to comment Share on other sites More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 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 More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 just going to try this line and see what happens _object setObjectTexture [1, "mapcontent\textures\test.jpg"]; Link to comment Share on other sites More sharing options...
0 Halvhjearne Posted July 19, 2015 Report Share Posted July 19, 2015 just going to try this line and see what happens _object setObjectTexture [1, "mapcontent\textures\test.jpg"]; setObjectTexture is not synced for mp use, use setObjectTextureGlobal as i already suggested. Link to comment Share on other sites More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 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 More sharing options...
0 Halvhjearne Posted July 19, 2015 Report Share Posted July 19, 2015 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 More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 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 More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 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 More sharing options...
0 KiloSwiss Posted July 19, 2015 Report Share Posted July 19, 2015 Add the texture to Your mission file and try it out in the editor, to make sure the file works. Link to comment Share on other sites More sharing options...
0 XMortX Posted July 19, 2015 Author Report Share Posted July 19, 2015 you sir! genius thankyou! thankyou all for your help :) problem solved Link to comment Share on other sites More sharing options...
Question
XMortX
Cheers guys
Link to comment
Share on other sites
11 answers to this question
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now