Arma 3 Scripting

image

  • Arma 3 v0.50
  • First in Armed Assault v1.00

Command · also in GUI Control, Structured Text · Markdown · JSON · original wiki page

Description

Creates a structured text containing the given image. Use setAttributes to set additional attributes on the image.

Syntax

image filename

Parameters:

Returns: Structured Text

Examples

Example 1

hint composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"];

Example 2

hint str (composeText ["Image: ", image "\a3\Data_f\Flags\flag_Altis_co.paa"] == parseText "Image: <img image='\a3\Data_f\Flags\flag_Altis_co.paa'/>"); // true

See also

setAttributes · parseText · text · composeText · lineBreak

Community notes

Spooner

Although there is a dedicated image command, parseText gives more options:

_imageText = parseText "<img size='5' color='#ff0000' image='fish.paa'/>"