forcedMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
(Created page with "{{Command|= Comments ____________________________________________________________________________________________ | arma3 |= Game name |dev|= Game version ___________________...")
 
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(38 intermediate revisions by 6 users not shown)
Line 1: Line 1:
{{Command|= Comments
{{RV|type=command
____________________________________________________________________________________________


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


| Returns if map is forced in an array containing forceMapForced, openMapForced respectively related to [[forceMap]] and [[openMap]].|= Description
|gr1= Map
____________________________________________________________________________________________


| '''forcedMap''' |= Syntax
|gr2= Interaction


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


|x1= <code>_IsForcedMap = [[forcedMap]];</code>|= EXAMPLE1
|s1= [[forcedMap]]
| [[openMap]], [[forceMap]]|= SEEALSO
|  |= MPBEHAVIOUR
}}


<h3 style='display:none'>Bottom Section</h3>
|r1= [[Array]] in format [forceMapForced, openMapForced]:
[[Category:Scripting Commands Arma 3|{{uc:{{PAGENAME}}}}]]
* forceMapForced: [[Boolean]] - [[true]] if map was forced with [[forceMap]] command
[[Category:Scripting Commands|{{uc:{{PAGENAME}}}}]]
* openMapForced: [[Boolean]] - [[true]] if map was forced with [[openMap]] command.
[[Category:Arma_3:_New_Scripting_Commands_List|{{uc:{{PAGENAME}}}}]]


<h3 style='display:none'>Notes</h3>
|x1= <sqf>
<dl class="command_description">
_forceMapForced = forcedMap select 0;
<!-- BEGIN Note Section -->
_openMapForced = forcedMap select 1;
<!-- END Note Section -->
</sqf>
</dl>


<h3 style="display:none">Bottom Section</h3>
|seealso= [[openMap]] [[forceMap]] [[showMap]] [[visibleMap]] [[shownMap]]
}}

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