From Bohemia Interactive Community
Hover & click on the images for description
Description
- Description:
- Opens or closes in-game map.
⚠
If
forced param is set to
true and map is set to open, when the map is opened it cannot be closed manually and the user can get stuck requiring the game restart.
Make sure you provide scripted mechanics to resolve this, should you need to force the map.
Useful when you wish to keep user for example on respawn screen, where they could still interact with the map but cannot enter the game until the time is up.
- Groups:
- MapInteraction
Syntax
- Syntax:
- openMap show
- Parameters:
- show: Boolean - if true opens map, if false closes map, provided it is not forced
- Return Value:
- Boolean - equivalent of visibleMap
- Syntax:
- openMap [show, forced]
- Parameters:
- show: Boolean - if true opens map, if false closes map, provided it is not forced.
- forced: Boolean - if true keeps map from closing when map is open.
2.06 if false, forces map to stay closed if show is false (see Example 1) - Return Value:
- Boolean - equivalent of visibleMap
Examples
- Example 1:
Additional Information
- See also:
- forceMap forcedMap visibleMap showMap shownMap
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
- Fraali - c
- Posted on Dec 08, 2021 - 11:00 (UTC)
-
(As of Arma 3 ver.2.06.148470)
Trying to close a map using copenMap false inside of a map event handler like
will cause the game to crash.
To fix this, please use it inside of a spawned script.
This should stop any issue of crashing when you close the map.