Str
This command must be executed after mission start. If you place it into init.sqs or init field of some unit, it will not work. Just add a little delay (~0.001) and the place the command.
Results appear below as you type; use the arrow keys to move through them.
Command · also in Structured Text, Strings · Markdown · JSON · original wiki page
Displays a very basic message dialog in the center of the screen. Player control is taken away until "Continue" is pressed. The message dialog can be dragged around on the screen. After "Continue" has been pressed, the content of the hintC is repeated in a normal hint.
Note
In Singleplayer, the game is paused while the message dialog is visible.
hintC message
Parameters:
message: StringReturns: Nothing
title hintC message
Parameters:
title: String - message titlemessage: String, Structured Text, Array of Strings or Array of Structured TextReturns: Nothing
hintC "Press W to move forward";
Same as the above in Arma 3 but without second hint displayed:
hintC "Press W to move forward";
hintC_EH = findDisplay 57 displayAddEventHandler ["Unload", {
_this spawn {
_this select 0 displayRemoveEventHandler ["Unload", hintC_EH];
hintSilent "";
};
}];
"Instructions" hintC [
"Press W to move forward.",
"Press S to move backwards.",
"Use the mouse to turn right or left.",
"Press V for weapon sights."
];
Same as the above in Arma 3 but without second hint displayed:
"Instructions" hintC [
"Press W to move forward.",
"Press S to move backwards.",
"Use the mouse to turn right or left.",
"Press V for weapon sights."
];
hintC_EH = findDisplay 72 displayAddEventHandler ["Unload", {
_this spawn {
_this select 0 displayRemoveEventHandler ["Unload", hintC_EH];
hintSilent "";
};
}];
private _separator = parseText "<br/>------------------------<br/>";
private _image = "\ca\ui\textures\aus_flag.paa";
private _message = composeText [image _image, "Heading Text", _separator, "Content"];
"" hintC _message;
hint · hintCadet · hintSilent · BIS_fnc_guiMessage
This command must be executed after mission start. If you place it into init.sqs or init field of some unit, it will not work. Just add a little delay (~0.001) and the place the command.
To display multiple messages after another you have to add a small delay in between. Otherwise only the first message will be displayed.
hintC "foo"; sleep 0.1; hintC "bar"
Without a sleep statement hintC will not suspend the script it has been called from.
"Titled" hintC uses display #72 while "untitled" one uses display #57. If you are trying examples in Arma 3 debug console, add a little delay like this:
0 spawn { sleep 0.5; /* your example code goes here*/ };
or no hintC will be displayed.