showMap: Difference between revisions

From Bohemia Interactive Community
m (Text replacement - "\|x([0-9])= <sqf>([^\/: ]+)([^;])<\/sqf>" to "|x$1= <sqf>$2$3;</sqf>")
m (Some wiki formatting)
 
Line 24: Line 24:
|gr1= Map
|gr1= Map


|descr= Enable Map (default [[true]])
|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>
}}


|s1= [[showMap]] show
|s1= [[showMap]] show
Line 36: Line 43:
|seealso= [[showCompass]] [[showGPS]] [[showRadio]] [[showWatch]] [[showPad]] [[shownMap]]
|seealso= [[showCompass]] [[showGPS]] [[showRadio]] [[showWatch]] [[showPad]] [[shownMap]]
}}
}}
<dl class="command_description">
<dt class="note">Unknown</dt>
<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:
<sqf>unitname removeweapon "itemmap"</sqf> To add again use <sqf>unitname addweapon "itemmap"</sqf>.
</dl>

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