shownWatch: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
mNo edit summary
m (template:command argument fix)
(14 intermediate revisions by 8 users not shown)
Line 1: Line 1:
[[Category:Scripting Commands|SHOWNWATCH]]
{{Command|= Comments
[[Category:Scripting Commands OFP 1.97|SHOWNWATCH]]
____________________________________________________________________________________________
[[Category:Scripting Commands OFP 1.46|SHOWNWATCH]]
[[Category:Scripting Commands ArmA|SHOWNWATCH]]


| ofp |= Game name


<h2 style="color:#000066">'''shownWatch'''</h2>
|1.00|= Game version
____________________________________________________________________________________________


| Checks if client has Watch enabled in [[description.ext]] (''showWatch'' param) or force enabled with [[showWatch]] command.  |DESCRIPTION=
____________________________________________________________________________________________


'''Operand types:'''
| '''shownWatch''' |SYNTAX=


None.
| [[Boolean]] |RETURNVALUE=
____________________________________________________________________________________________
 
|x1= <code>[[if]] ([[shownWatch]]) [[then]] {[[hint]] "You have Watch enabled"};</code> |EXAMPLE1=
____________________________________________________________________________________________


'''Type of returned value:'''
| [[showWatch]], [[visibleWatch]], [[shownGPS]], [[shownCompass]], [[shownHUD]] |SEEALSO=


[[Boolean]]
}}


'''Description:'''
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->


Check if player has Watch enabled.
<!-- Note Section END -->
</dl>


 
<h3 style="display:none">Bottom Section</h3>
'''Example:'''
[[Category:Scripting Commands|SHOWNWATCH]]
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
? '''shownWatch''' : [[hint]] "You have a Watch."
[[Category:Scripting Commands OFP 1.96|SHOWNWATCH]]
[[Category:Scripting Commands OFP 1.46|SHOWNWATCH]]
[[Category:Scripting Commands ArmA|SHOWNWATCH]]
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 15:49, 7 April 2019

Hover & click on the images for description

Description

Description:
Checks if client has Watch enabled in description.ext (showWatch param) or force enabled with showWatch command.
Groups:
Uncategorised

Syntax

Syntax:
shownWatch
Return Value:
Boolean

Examples

Example 1:
if (shownWatch) then {hint "You have Watch enabled"};

Additional Information

See also:
showWatchvisibleWatchshownGPSshownCompassshownHUD

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

Bottom Section