visibleMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(type)
Line 38: Line 38:
<dt class="note>'''[[User:Jamesadamar|James]]'''
<dt class="note>'''[[User:Jamesadamar|James]]'''
<dd class="note">
<dd class="note">
[[visibleMap]] does not work in all cases where a map might be part of a dialog like in a uav terminal or in a artillery computer dialog. Some of these cases can be covered with a [[addMissionEventHandler]] of type "Map". Just use the two magic variables      <code>mapIsOpened</code> and <code>mapIsForced</code>
[[visibleMap]] does not work in all cases where a map might be part of a dialog like in a uav terminal or in a artillery computer dialog. Some of these cases can be covered with an [[addMissionEventHandler]] of type "Map". Just use the two magic variables      <code>mapIsOpened</code> and <code>mapIsForced</code>





Revision as of 17:18, 13 November 2017

Hover & click on the images for description

Description

Description:
Return true if the main map is shown (active).
Groups:
Uncategorised

Syntax

Syntax:
visibleMap
Return Value:
Boolean

Examples

Example 1:
if (visibleMap) then {hint "You're showing the map !"}

Additional Information

See also:
forceMapopenMap

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

Posted on 13 November 2017
James
visibleMap does not work in all cases where a map might be part of a dialog like in a uav terminal or in a artillery computer dialog. Some of these cases can be covered with an addMissionEventHandler of type "Map". Just use the two magic variables mapIsOpened and mapIsForced

Bottom Section