Jump to content

Recommended Posts

I am trying to add images to my briefing and tasks in Arma 3.  I can get one image to appear just fine by adding <img image='image.jpg' width='367 height='256'/> to the text line in the editor.  But I would like to list several images, one after the other in the briefing/task screen and I can only get the first image to appear no matter how many I list.

 

Am I doing something wrong or is there only one image allowed?

 

Thanks!

Share this post


Link to post
Share on other sites

Make sure your images are in .paa format and have a resolution that is in the ^2 scale (e.g. 256x256, 512x1024). This is best practise. Also it would be worth looking at the createDiaryRecord command. It has all the necessary info on the rages and atributes to use

Share this post


Link to post
Share on other sites
player createDiaryRecord ["Diary",
    ["Surveillance Pictures",
    "Picture No.1<br/><br/>
    Time: 6.41 UTC<br/><br/>
    Date: 13.11.2009<br/><br/>
    Location: Altis<br/><br/>
    <img image='images\nikos_1.paa' width='367' height='256'/><br/><br/>
    Picture No.2<br/><br/>
    Time: 6.44 UTC<br/><br/>
    Date: 13.11.2009<br/><br/>
    Location: Altis<br/><br/>
    <img image='images\nikos_2.paa' width='367' height='256'/><br/>"]
];

That's a briefing with 2 pictures. Does not necessarily need to be paa and the width of 367 and the height of 256 worked best for me on a 16 by 9 resolution.

  • Like 2

Share this post


Link to post
Share on other sites
On ‎6‎/‎18‎/‎2016 at 9:10 PM, R3vo said:

player createDiaryRecord ["Diary",
    ["Surveillance Pictures",
    "Picture No.1<br/><br/>
    Time: 6.41 UTC<br/><br/>
    Date: 13.11.2009<br/><br/>
    Location: Altis<br/><br/>
    <img image='images\nikos_1.paa' width='367' height='256'/><br/><br/>
    Picture No.2<br/><br/>
    Time: 6.44 UTC<br/><br/>
    Date: 13.11.2009<br/><br/>
    Location: Altis<br/><br/>
    <img image='images\nikos_2.paa' width='367' height='256'/><br/>"]
];

That's a briefing with 2 pictures. Does not necessarily need to be paa and the width of 367 and the height of 256 worked best for me on a 16 by 9 resolution.

I was trying to use this code, but when I change the information, it won't show in game at all. I put it in init.sqf. I tried with the same description and with different pictures, located in images\name.jpg, but in game an error pops up that the picture can't be found. I pasted them directly in mission's folder and removed "images\…" from the line, so only the picture's name was left, but it's the same. I even converted the pictures into .paa files, but nothing worked. What's wrong here?!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×