Difference between revisions of "forceMap"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "_{10,} " to "")
m (Text replacement - " *\| *([Cc]omments|COMMENTS|Game|[Gg]ame [Nn]ame|Game [Vv]ersion|Game Version \(number surrounded by NO SPACES\)|Multiplayer Arguments( \("local" or "global"\))?|Effects|Multiplayer Effects( \("local" or "global"\))?|Multiplayer Exe...)
Line 1: Line 1:
{{Command|Comments=
+
{{Command
  
| ofp |Game name=
+
| ofp
  
|1.27|Game version=
+
|1.27
  
|eff= local |Multiplayer Effects=
+
|eff= local
  
|gr1= Map |GROUP1=
+
|gr1= Map
  
|gr2= Interaction |GROUP2=
+
|gr2= Interaction
  
 
| Opens non-interactive main map in background that overrides user screen. <br><br>
 
| Opens non-interactive main map in background that overrides user screen. <br><br>
 
{{Warning | When map is forced with this command, the user is able to fire but cannot see the world, just the map. The map 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.}}<br>
 
{{Warning | When map is forced with this command, the user is able to fire but cannot see the world, just the map. The map 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.}}<br>
To force open interactive map use [[openMap]] command. |DESCRIPTION=
+
To force open interactive map use [[openMap]] command.
  
| '''forceMap''' show |SYNTAX=
+
| '''forceMap''' show
  
|p1= show: [[Boolean]] |PARAMETER1=
+
|p1= show: [[Boolean]]
  
| [[Nothing]] |RETURNVALUE=
+
| [[Nothing]]
 
   
 
   
|x1= <code>[[forceMap]] [[true]]</code> |EXAMPLE1=
+
|x1= <code>[[forceMap]] [[true]]</code>
  
| [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]] |SEEALSO=
+
| [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]
  
 
}}
 
}}

Revision as of 01:36, 18 January 2021

Template:Command

Notes

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)

Bottom Section