hintC: Difference between revisions
Jump to navigation
Jump to search
m (Text replace - "{{uc:{{PAGENAME}}}}" to "{{uc:{{PAGENAME}}}} {{uc:{{PAGENAME}}}}") |
Killzone Kid (talk | contribs) (added example and screenshot) |
||
Line 9: | Line 9: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Works the same way as [[hint]], except the text is displayed in the middle of the screen. | | 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". |= Description | The game is paused until the player presses "Continue". |= Description | ||
Line 18: | Line 18: | ||
| [[Nothing]] |= Return value | | [[Nothing]] |= Return value | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1 = <code> | |x1 = <code> [[hintC]] "Press W to move forward"; </code> | ||
|x2 = Same as the above in Arma3 but without second [[hint]] displayed:<code>[[hintC]] "Press W to move forward"; | |||
hintC_EH = [[findDisplay]] 57 [[displayAddEventHandler]] ["unload", { | |||
0 = _this [[spawn]] { | |||
_this select 0 [[displayRemoveEventHandler]] ["unload", hintC_EH]; | |||
[[hintSilent]] ""; | |||
}; | |||
}];</code> | |||
[[Image:HintC.jpg|400px]] | |||
| [[hint]], [[hintCadet]], [[hintC array]], [[hintC structuredText]], [[hintC text]], [[hintSilent]] |= See also | | [[hint]], [[hintCadet]], [[hintC array]], [[hintC structuredText]], [[hintC text]], [[hintSilent]] |= See also | ||
}} | }} | ||
<h3 style="display:none">Notes</h3> | <h3 style="display:none">Notes</h3> | ||
<dl class="command_description"> | <dl class="command_description"> |
Revision as of 11:19, 9 January 2014
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".
- Groups:
- Uncategorised
Syntax
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 ""; }; }];
Additional Information
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
Categories:
- Scripting Commands
- Introduced with Operation Flashpoint version 1.00
- Operation Flashpoint: New Scripting Commands
- Operation Flashpoint: Scripting Commands
- Command Group: Uncategorised
- Scripting Commands: Local Effect
- Scripting Commands OFP 1.96
- Scripting Commands OFP 1.46
- Scripting Commands ArmA
- Command Group: Interaction
- Scripting Commands ArmA2
- Scripting Commands Arma 3
- Scripting Commands Take On Helicopters