hintC: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replace - "</dt>" to "")
m (Text replace - "</dd>" to "")
Line 26: Line 26:
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">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.</dd>
<dt class="note">'''[[User:Str|Str]]'''<dd class="note">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.
<dt class="note">'''[[User:ArmAtec|ArmAtec]]'''<dd class="note">
<dt class="note">'''[[User:ArmAtec|ArmAtec]]'''<dd class="note">
HintC can be used with formatting like this:
HintC can be used with formatting like this:
  HintC format["Hello %1",player]</dd>
  HintC format["Hello %1",player]
<dt class="note">'''[[User:Worldeater|Worldeater]]'''<dd class="note">
<dt class="note">'''[[User:Worldeater|Worldeater]]'''<dd class="note">
To display multiple messages after another you have to add a small delay in between. Otherwise only the first message will be displayed.
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";
  hintC "foo"; sleep 0.1; hintC "bar";
Without a [[sleep]] statement ''hintC'' will not suspend the script it has been called from.
Without a [[sleep]] statement ''hintC'' will not suspend the script it has been called from.
</dd>
 
<!-- Note Section END -->
<!-- Note Section END -->
</dl>
</dl>

Revision as of 13:34, 21 October 2011

Hover & click on the images for description

Description

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

Syntax

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

Examples

Example 1:
hintC "Press W to move forward"

Additional Information

See also:
hinthintCadethintC arrayhintC structuredTexthintC texthintSilent

Notes

Report bugs on the Feedback Tracker and/or discuss them on the Arma Discord or on the Forums.
Only post proven facts here! Add Note

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