forceMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(see also)
m (Text replacement - "\| *((\[\[[a-zA-Z0-9_ |()]+\]\],? ?)+) * \}\}" to "|seealso= $1 }}")
(27 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


| ofp |= Game name
| ofp


|1.27|= Game version
|1.27


|eff= local |= Effects in MP
|eff= local
____________________________________________________________________________________________


| Opens non-interactive main map in background that overrides user screen. The user is able to fire but cannot see the world just the map. To force open interactive map use [[openMap]] command. |= Description
|gr1= Map
____________________________________________________________________________________________


| '''forceMap''' show |= Syntax
|gr2= Interaction


|p1= show: [[Boolean]] |= Parameter 1
| Opens non-interactive main map in background that overrides user screen. <br><br>
{{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>
To force open interactive map use [[openMap]] command.


| [[Nothing]] |= Return value
| '''forceMap''' show
____________________________________________________________________________________________
 
|p1= show: [[Boolean]]
 
| [[Nothing]]
   
   
|x1= <code>[[forceMap]] [[true]]</code> |= Example 1
|x1= <code>[[forceMap]] [[true]]</code>
____________________________________________________________________________________________
 
| [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]  |= See also


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


<h3 style="display:none">Notes</h3>
<dl class="command_description">
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section BEGIN -->
<dt class="note">'''[[User:Ceeeb|Ceeeb]]'''
<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)''


<dt class="note">'''[[User:Manny|Manny]]'''
<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)
Line 40: Line 39:
</dl>
</dl>


<h3 style="display:none">Bottom Section</h3>
 
[[Category:Scripting Commands|FORCEMAP]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands OFP 1.96|FORCEMAP]]
[[Category:Scripting Commands OFP 1.96|FORCEMAP]]
[[Category:Scripting Commands OFP 1.46|FORCEMAP]]
[[Category:Scripting Commands OFP 1.46|FORCEMAP]]
[[Category:Scripting Commands ArmA|FORCEMAP]]
{{GameCategory|arma1|Scripting Commands}}
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma2|Scripting Commands}}
[[Category:Scripting Commands ArmA2|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
{{GameCategory|tkoh|Scripting Commands}}
[[Category:Scripting_Commands_Take_On_Helicopters|{{uc:{{PAGENAME}}}}]]

Revision as of 00:41, 17 February 2021

Hover & click on the images for description

Description

Description:
Description needed
Groups:
MapInteraction

Syntax

Syntax:
Syntax needed
Parameters:
show: Boolean
Return Value:
Return value needed

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)