Difference between revisions of "hintC"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (New hintC dialog ID ("#define IDD_HINTC_EX 72", ui_f.pbo\hpp\defineResincl.inc line 557))
(Undo revision 88059 by CryLegend (talk) restored broken example)
Line 21: Line 21:
  
 
|x2 = Same as the above in Arma3 but without second [[hint]] displayed:<code>[[hintC]] "Press W to move forward";
 
|x2 = Same as the above in Arma3 but without second [[hint]] displayed:<code>[[hintC]] "Press W to move forward";
hintC_EH = [[findDisplay]] 72 [[displayAddEventHandler]] ["unload", {
+
hintC_EH = [[findDisplay]] 57 [[displayAddEventHandler]] ["unload", {
 
0 = _this [[spawn]] {
 
0 = _this [[spawn]] {
 
_this [[select]] 0 [[displayRemoveEventHandler]] ["unload", hintC_EH];
 
_this [[select]] 0 [[displayRemoveEventHandler]] ["unload", hintC_EH];

Revision as of 01:18, 18 March 2015

Introduced with Operation Flashpoint version 1.001.00Effects of this scripting command are not broadcasted over the network and remain local to the client the command is executed on
Hover & click on the images for descriptions

Description

Description:
Works the same way as hint, except the text is also displayed in the middle of the screen. The game is paused until the player presses "Continue".

Syntax

Syntax:
hintC text
Parameters:
text: String
Return Value:
Nothing

Examples

Example 1:
hintC "Press W to move forward";
Example 2:
Same as the above in Arma3 but without second hint displayed:hintC "Press W to move forward"; hintC_EH = findDisplay 57 displayAddEventHandler ["unload", { 0 = _this spawn { _this select 0 displayRemoveEventHandler ["unload", hintC_EH]; hintSilent ""; }; }]; HintC.jpg

Additional Information

See also:
hinthintCadethintC arrayhintC structuredTexthintC texthintSilent
Groups:
Uncategorised

Notes

i
Only post proven facts here. Report bugs on the Feedback Tracker and discuss on the Arma Discord or on the Forums.

Notes

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.
ArmAtec
HintC can be used with formatting like this: HintC format["Hello %1",player]
Worldeater
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.

Bottom Section