showMap: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "<!-- Note Section [A-Z]+ --> " to "")
m (Some wiki formatting)
 
(21 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| ofp
|game1= ofp
|version1= 1.00


|1.00
|game2= ofpe
|version2= 1.00


|gr1= Map
|game3= arma1
|version3= 1.00
 
|game4= arma2
|version4= 1.00


| Enable Map (default [[true]])
|game5= arma2oa
|version5= 1.50


| '''showMap''' show
|game6= tkoh
|version6= 1.00


|p1= show: [[Boolean]]
|game7= arma3
|version7= 0.50


| [[Nothing]]
|gr1= Map
 
|x1= <code>showMap [[false]]</code>


|seealso= [[showCompass]], [[showGPS]], [[showRadio]], [[showWatch]], [[showPad]], [[shownMap]]
|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>
}}
}}


<dl class="command_description">
|s1= [[showMap]] show


<dt class="note">Unknown</dt>
|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>.


</dl>
|r1= [[Nothing]]


{{GameCategory|arma1|Scripting Commands}}
|x1= <sqf>showMap false;</sqf>
{{GameCategory|arma2|Scripting Commands}}
 
{{GameCategory|arma3|Scripting Commands}}
|seealso= [[showCompass]] [[showGPS]] [[showRadio]] [[showWatch]] [[showPad]] [[shownMap]]
{{GameCategory|tkoh|Scripting Commands}}
}}

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