Difference between revisions of "forceMap"

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " +\|\$Warning( *)\|" to " |$1Warning$1|")
m (Text replacement - "</dd> </dl>" to "</dd> </dl>")
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
{{RV|type=command
 
{{RV|type=command
  
| ofp
+
|game1= ofp
 +
|version1= 1.27
  
|1.27
+
|game2= ofpe
 +
|version2= 1.00
 +
 
 +
|game3= arma1
 +
|version3= 1.00
 +
 
 +
|game4= arma2
 +
|version4= 1.00
 +
 
 +
|game5= arma2oa
 +
|version5= 1.50
 +
 
 +
|game6= tkoh
 +
|version6= 1.00
 +
 
 +
|game7= arma3
 +
|version7= 0.50
  
 
|eff= local
 
|eff= local
Line 11: Line 28:
 
|gr2= Interaction
 
|gr2= Interaction
  
| Opens non-interactive main map in background that overrides user screen. <br><br>
+
|descr= Opens non-interactive main map in background that overrides user screen. To force open interactive map use [[openMap]] command.
{{Feature | 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>
+
{{Feature | Warning | When the map is forced open with this command, the user is still able to fire but cannot see the world, just the map.
To force open interactive map use [[openMap]] command.
+
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.}}
 +
 
 +
|s1= [[forceMap]] show
  
| '''forceMap''' show
+
|p1= show: [[Boolean]] - [[true]] to force, [[false]] to go back to normal map behaviour
  
|p1= show: [[Boolean]]
+
|r1= [[Nothing]]
  
| [[Nothing]]
 
 
 
 
|x1= <code>[[forceMap]] [[true]]</code>
 
|x1= <code>[[forceMap]] [[true]]</code>
  
| [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]
+
|seealso= [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]
 
}}
 
}}
  
 
<dl class="command_description">
 
<dl class="command_description">
<!-- Note Section BEGIN -->
 
 
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
 
<dt class="note">[[User:Ceeeb|Ceeeb]]</dt>
 
<dd class="note">
 
<dd class="note">
 
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)''
 
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)''
 +
</dd>
  
 
<dt class="note">[[User:Manny|Manny]]</dt>
 
<dt class="note">[[User:Manny|Manny]]</dt>
 
<dd class="note">
 
<dd class="note">
 
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)
 
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)
 +
</dd>
  
<!-- Note Section END -->
 
 
</dl>
 
</dl>
 
 
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
 
[[Category:Scripting Commands OFP 1.96|FORCEMAP]]
 
[[Category:Scripting Commands OFP 1.46|FORCEMAP]]
 
{{GameCategory|arma1|Scripting Commands}}
 
{{GameCategory|arma2|Scripting Commands}}
 
{{GameCategory|arma3|Scripting Commands}}
 
{{GameCategory|tkoh|Scripting Commands}}
 

Latest revision as of 16:09, 13 June 2021

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:
forcedMapshowMapshownMapopenMapvisibleMap

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)