forceMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\<dt class\=\"note\"\>\'\'\'\[\[(.*)\]\]\'\'\'" to "<dt class="note">$1")
m (Some wiki formatting)
 
(30 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| ofp |Game name=
|game1= ofp
|version1= 1.27


|1.27|Game version=
|game2= ofpe
|version2= 1.00


|eff= local |Multiplayer Effects=
|game3= arma1
____________________________________________________________________________________________
|version3= 1.00


| Opens non-interactive main map in background that overrides user screen. <br><br>
|game4= arma2
{{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>
|version4= 1.00
To force open interactive map use [[openMap]] command. |DESCRIPTION=
____________________________________________________________________________________________


| '''forceMap''' show |SYNTAX=
|game5= arma2oa
|version5= 1.50


|p1= show: [[Boolean]] |PARAMETER1=
|game6= tkoh
|version6= 1.00


| [[Nothing]] |RETURNVALUE=
|game7= arma3
____________________________________________________________________________________________
|version7= 0.50
 
|x1= <code>[[forceMap]] [[true]]</code> |EXAMPLE1=
____________________________________________________________________________________________


| [[forcedMap]], [[showMap]], [[shownMap]], [[openMap]], [[visibleMap]]  |SEEALSO=
|eff= local


|gr1= Map
|gr2= Interaction
|descr= Opens non-interactive main map in background that overrides user screen. To force open interactive map use [[openMap]] command.
{{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.
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.
}}
}}


<h3 style="display:none">Notes</h3>
|s1= [[forceMap]] show
<dl class="command_description">
 
<!-- Note Section BEGIN -->
|p1= show: [[Boolean]] - [[true]] to force, [[false]] to go back to normal map behaviour
<dt class="note">[[User:Ceeeb|Ceeeb]]
 
<dd class="note">
|r1= [[Nothing]]
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)''
 
|x1= <sqf>forceMap true;</sqf>


<dt class="note">[[User:Manny|Manny]]
|seealso= [[forcedMap]] [[showMap]] [[shownMap]] [[openMap]] [[visibleMap]]
<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)


<!-- Note Section END -->
{{Note
</dl>
|user= Ceeeb
|timestamp= 20070202052800
|text= 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)''
}}


<h3 style="display:none">Bottom Section</h3>
{{Note
[[Category:Scripting Commands|FORCEMAP]]
|user= Manny
[[Category:Scripting Commands OFP 1.99|{{uc:{{PAGENAME}}}}]]
|timestamp= 20070505154300
[[Category:Scripting Commands OFP 1.96|FORCEMAP]]
|text= Manually opening the map afterwards won't close the map.
[[Category:Scripting Commands OFP 1.46|FORCEMAP]]
Actually it will open the "real" map on top of the forced map, and closing the (top) map with the {{Controls|M}} key again will still show the forcefully opened map.
[[Category:Scripting Commands ArmA|FORCEMAP]]
|game= arma1
[[Category:Command_Group:_GUI_Control|{{uc:{{PAGENAME}}}}]]
|version= 1.05
[[Category:Scripting Commands Arma 2|{{uc:{{PAGENAME}}}}]]
}}
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
[[Category:Scripting Commands Take On Helicopters|{{uc:{{PAGENAME}}}}]]

Latest revision as of 00:45, 28 March 2024

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 showMap shownMap openMap visibleMap

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 - c
Posted on Feb 02, 2007 - 05:28 (UTC)
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 - c
Posted on May 05, 2007 - 15:43 (UTC)

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.