hint: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|= Comments | |||
____________________________________________________________________________________________ | |||
| ofp |= Game name | |||
|1.00|= Game version | |||
|eff= local |= Effects in MP | |||
____________________________________________________________________________________________ | |||
| Outputs a hint message on the left upper corner of the screen together with a clinging sound. The text may contain several lines. |= Description | |||
____________________________________________________________________________________________ | |||
''' | | '''hint''' text |= Syntax | ||
|p1= text: [[String]] - the message to write on the screen may consist of any characters. \n indicates a line break. |= Parameter 1 | |||
| [[Nothing]] |= Return value | |||
____________________________________________________________________________________________ | |||
|x1= <pre>hint "Press W to move forward. \nPress S to move backwards. \n\nUse the mouse to turn right or left."</pre> | |||
outputs the following message: | |||
<pre>Press W to move forward. | |||
Press S to move backwards. | |||
Use the mouse to turn right or left.</pre> | |||
Known Problems Avoid hint messages that exceed the screen, as this may lead to crashes. |= Example 1 | |||
____________________________________________________________________________________________ | |||
| [[hintC]], [[hintCadet]] |= See also | |||
}} | |||
<h3 style="display:none">Notes</h3> | |||
<dl class="command_description"> | |||
<!-- Note Section BEGIN --> | |||
<!-- Note Section END --> | |||
</dl> | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Scripting Commands|HINT]] | |||
[[Category:Scripting Commands OFP 1.96|HINT]] | |||
[[Category:Scripting Commands OFP 1.46|HINT]] | |||
[[Category:Scripting Commands ArmA|HINT]] |
Revision as of 00:29, 2 August 2006
Description
- Description:
- Outputs a hint message on the left upper corner of the screen together with a clinging sound. The text may contain several lines.
- Groups:
- Uncategorised
Syntax
- Syntax:
- hint text
- Parameters:
- text: String - the message to write on the screen may consist of any characters. \n indicates a line break.
- Return Value:
- Nothing
Examples
- Example 1:
hint "Press W to move forward. \nPress S to move backwards. \n\nUse the mouse to turn right or left."
outputs the following message:
Press W to move forward. Press S to move backwards. Use the mouse to turn right or left.
Known Problems Avoid hint messages that exceed the screen, as this may lead to crashes.
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