top of page
Search

[Into The {Code}] : A View into the World of ARMA 3 Coding

  • TRC_TheAssassinzz
  • Sep 5, 2017
  • 2 min read

In this series we explore the coding aspects of Arma III. Here we will take you into an in-depth view of how commands works and creative ways to use them. This series is written with the assumption that you understand the basics of coding ie variables , strings and arrays.

This week's topic is the most basic of commands: titleText [‘“”,””];

This command is used to display a message at the center of a player's screen. The simplest version of this code be used as:

titleText [“Hello World”,”PLAIN”];

Here the first set of quotations is telling the game that the text for this message is " Hello World". The second set of quotations tells the game the style of the message.

There are 8 possible styles/effects for the text: "PLAIN", "PLAIN DOWN", "BLACK", "BLACK FADED", "BLACK OUT", "BLACK IN", "WHITE OUT" and "WHITE IN".

There are two more variables that you can input, making the command look like:

titleText [“Hello World”, “PLAIN”, x, y];

The X value controls how long the message remains onscreen. Be careful here though! In order to get the actual time onscreen you have to use X * 10. The Y value is a boolean that controls whether or not the message is visible while looking at the map.

This command is useful for Zeus missions when you need to publish a message to the players. There is a plan for this command to support structured text in the near future. This brings a highly polished presentation to the information that can be passed through this command.

Stay tuned for the next edition of [Into The {Code}] for a look into the hint and hintC commands.

 
 
 
RECENT POSTS
bottom of page