forcedMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\[\[Category:[ _]?Scripting[ _]Commands[ _]Arma[ _]3(\|.*)]]" to "{{GameCategory|arma3|Scripting Commands}}")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(25 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{Command|Comments=
{{RV|type=command
____________________________________________________________________________________________


| arma3 |Game name=
|game1= arma3
|1.62|Game version=
|version1= 1.62


|gr1= Map |GROUP1=
|gr1= Map


|gr2= Interaction |GROUP2=
|gr2= Interaction
____________________________________________________________________________________________


| Returns if map was forced by using [[forceMap]] command or [[openMap]] command with force option |DESCRIPTION=
|descr= Returns if map was forced by using [[forceMap]] command or [[openMap]] command with force option
____________________________________________________________________________________________


| '''forcedMap''' |SYNTAX=
|s1= [[forcedMap]]


| [[Array]] - in format [forceMapForced, openMapForced] where:
|r1= [[Array]] in format [forceMapForced, openMapForced]:
* forceMapForced: [[Boolean]] - [[true]] if map was forced with [[forceMap]] command
* forceMapForced: [[Boolean]] - [[true]] if map was forced with [[forceMap]] command
* openMapForced: [[Boolean]] - [[true]] if map was forced with [[openMap]] command.
* openMapForced: [[Boolean]] - [[true]] if map was forced with [[openMap]] command.
|RETURNVALUE=
____________________________________________________________________________________________


|x1= <code>_forceMapForced = [[forcedMap]] [[select]] 0;
|x1= <sqf>
_openMapForced = [[forcedMap]] [[select]] 1;</code>|EXAMPLE1=  
_forceMapForced = forcedMap select 0;
| [[openMap]], [[forceMap]], [[showMap]], [[visibleMap]], [[shownMap]]|SEEALSO=
_openMapForced = forcedMap select 1;
|  |MPBEHAVIOUR=
</sqf>
 
|seealso= [[openMap]] [[forceMap]] [[showMap]] [[visibleMap]] [[shownMap]]
}}
}}
<h3 style='display:none'>Bottom Section</h3>
{{GameCategory|arma3|Scripting Commands}}
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
{{GameCategory|arma3|New_Scripting_Commands_List}}
<h3 style='display:none'>Notes</h3>
<dl class="command_description">
<!-- BEGIN Note Section -->
<!-- END Note Section -->
</dl>
<h3 style="display:none">Bottom Section</h3>

Latest revision as of 11:34, 3 September 2024

Hover & click on the images for description

Description

Description:
Returns if map was forced by using forceMap command or openMap command with force option
Groups:
MapInteraction

Syntax

Syntax:
forcedMap
Return Value:
Array in format [forceMapForced, openMapForced]:

Examples

Example 1:
_forceMapForced = forcedMap select 0; _openMapForced = forcedMap select 1;

Additional Information

See also:
openMap forceMap showMap visibleMap shownMap

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