Warning: file_put_contents(/ff_6abe3c0131af6a95b964891b3f64a9e935ad574170afaba5.php): failed to open stream: Permission denied in /home/ofpecsav/public_html/forum/Sources/Subs-ForumFirewall.php on line 1619
drawIcon3D - OFPEC Scripting Command Reference | OFPEC The Editing Center

drawIcon3D [texture, color, pos, width, height, angle, text, shadow, textSize, font]

Operand types

[texture, color, pos, width, height, angle, text, shadow, textSize, font]: Array

Type of returned value

Description

Draws an ingame icon at a given position.

Command has to be executed each frame. Use onEachFrame or addMissionEventHandler "Draw3D"

Used In

Arma3

Example

//Icon and text
onEachFrame {
drawIcon3D ["targetIcon.paa", [1,1,1,1], getPos cursorTarget, 1, 1, 45, "Target", 1, 0.05, "TahomaB"];
};

//text only
addMissionEventHandler ["Draw3D", {
drawIcon3D ["", [1,0,0,1], position cursorTarget, 0, 0, 0, "Target", 1, 0.05, "PuristaMedium"];
}];

Advertisement