showMap: Difference between revisions

From Bohemia Interactive Community
m (Add group)
m (Some wiki formatting)
 
(36 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.00


|1.00|Game version=
|game2= ofpe
|version2= 1.00


|gr1= Map |GROUP1=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Enable Map (default [[true]]) |DESCRIPTION=
|game4= arma2
____________________________________________________________________________________________
|version4= 1.00


| '''showMap''' show |SYNTAX=
|game5= arma2oa
|version5= 1.50


|p1= show: [[Boolean]] |PARAMETER1=
|game6= tkoh
|version6= 1.00


| [[Nothing]] |RETURNVALUE=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <code>showMap [[false]]</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[showCompass]], [[showGPS]], [[showRadio]], [[showWatch]], [[showPad]], [[shownMap]]  |SEEALSO=
|gr1= Map


|descr= Enable Map (default [[true]]).
{{Feature|informative|
In {{arma2}} and later this command no longer works, the map now being an inventory item ("ItemMap" class name).
<sqf>
unitName removeWeapon "ItemMap";
unitName addWeapon "ItemMap";
</sqf>
}}
}}


<h3 style="display:none">Notes</h3>
|s1= [[showMap]] show
<dl class="command_description">
<!-- Note Section BEGIN -->


<dt class="note">Unknown
|p1= show: [[Boolean]]
<dd class="note">In ArmA 2 - This command no longer works. The map is now an inventory item. It is kept under the weapon class name "itemmap".<br>
Example: <code>unitname removeweapon "itemmap"</code> To add again use <code>unitname addweapon "itemmap"</code>.


<!-- Note Section END -->
|r1= [[Nothing]]
</dl>


<h3 style="display:none">Bottom Section</h3>
|x1= <sqf>showMap false;</sqf>
[[Category:Scripting Commands OFP 1.46|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands OFP 1.96|{{uc:{{PAGENAME}}}}]]
|seealso= [[showCompass]] [[showGPS]] [[showRadio]] [[showWatch]] [[showPad]] [[shownMap]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Armed Assault|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:01, 12 January 2026

Hover & click on the images for description

Description

Description:
Enable Map (default true).
In Arma 2 and later this command no longer works, the map now being an inventory item ("ItemMap" class name).
unitName removeWeapon "ItemMap"; unitName addWeapon "ItemMap";
Groups:
Map

Syntax

Syntax:
showMap show
Parameters:
show: Boolean
Return Value:
Nothing

Examples

Example 1:
showMap false;

Additional Information

See also:
showCompass showGPS showRadio showWatch showPad shownMap

Notes

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