openMap: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "<tt>([a-zA-Z0-9\. _"']+)<\/tt>" to "{{hl|$1}}") |
No edit summary |
||
Line 47: | Line 47: | ||
|seealso= [[forceMap]], [[forcedMap]], [[visibleMap]], [[showMap]], [[shownMap]] | |seealso= [[forceMap]], [[forcedMap]], [[visibleMap]], [[showMap]], [[shownMap]] | ||
}} | |||
{{Note | |||
|user= Fraali | |||
|timestamp= 20211208110058 | |||
|text= ('''As of Arma 3 ver.2.06.148470''') <br> | |||
Trying to close a map using 'closeMap false' inside of a map event handler like <br> | |||
''''addMissionEventHandler["Map",{closeMap false}];'''' <br> | |||
will cause the game to crash.<br> | |||
To fix this, please use it inside of a spawned script.<br> | |||
Ex. ''''addMissionEventHandler["Map",{[] spawn {closeMap false};}];''''<br> | |||
<br> | |||
This should stop any issue of crashing when you close the map. | |||
}} | }} |
Revision as of 12:00, 8 December 2021
Description
- Description:
- Opens or closes in-game map.
- 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
Alternative Syntax
- 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. Arma 3 v2.06.147984, if false, forces map to stay closed if 'show' is false (see description)
- Return Value:
- Boolean - equivalent of visibleMap
Examples
Additional Information
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
- Posted on Dec 08, 2021 - 11:00 (UTC)
-
(As of Arma 3 ver.2.06.148470)
Trying to close a map using 'closeMap false' inside of a map event handler like
'addMissionEventHandler["Map",{closeMap false}];'
will cause the game to crash.
To fix this, please use it inside of a spawned script.
Ex. 'addMissionEventHandler["Map",{[] spawn {closeMap false};}];'
This should stop any issue of crashing when you close the map.