forceMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "</dd> </dl>" to "</dd> </dl>")
m (Text replacement - "\|seealso= *\[\[([^ ]+)\]\], \[\[([^ ]+)\]\]" to "|seealso= $1 $2")
Line 40: Line 40:
|x1= <code>[[forceMap]] [[true]]</code>
|x1= <code>[[forceMap]] [[true]]</code>


|seealso= [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]
|seealso= [[forcedMap]] [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]
}}
}}



Revision as of 15:47, 20 January 2022

Hover & click on the images for description

Description

Description:
Opens non-interactive main map in background that overrides user screen. To force open interactive map use openMap command.
When the map is forced open with this command, the user is still able to fire but cannot see the world, just the map. The map cannot be closed manually and the user can get stuck requiring a game restart. Make sure you provide scripted mechanics to de-force the map at a later stage.
Groups:
MapInteraction

Syntax

Syntax:
forceMap show
Parameters:
show: Boolean - true to force, false to go back to normal map behaviour
Return Value:
Nothing

Examples

Example 1:
forceMap true

Additional Information

See also:
forcedMap showMapshownMapopenMapvisibleMap

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
Ceeeb
In OFP v1.96, the mapAnim series of commands, together with forceMap can only be used in the intro and mission, as it is not possible to access the map from the outro. (not checked, sourced from an old copy of the OFPEC comref)
Manny
Manually opening the map afterwards won't close the map. Actually it will open the "real" map on top of the forced map, and closing the (top) map with the m-key again will still show the forcefully opened map. (ArmA 1.05)