forcedMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - " \{\{GameCategory *\| *arma3 *\| *(New )?Scripting Commands\}\}" to "")
m (Some wiki formatting)
Line 1: Line 1:
{{RV|type=command
{{RV|type=command


| arma3
|game1= arma3
|1.62
|version1= 1.62


|gr1= Map
|gr1= Map
Line 8: Line 8:
|gr2= Interaction
|gr2= Interaction


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


| '''forcedMap'''
|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.
Line 18: Line 18:
|x1= <code>_forceMapForced = [[forcedMap]] [[select]] 0;
|x1= <code>_forceMapForced = [[forcedMap]] [[select]] 0;
_openMapForced = [[forcedMap]] [[select]] 1;</code>
_openMapForced = [[forcedMap]] [[select]] 1;</code>
|seealso= [[openMap]], [[forceMap]], [[showMap]], [[visibleMap]], [[shownMap]]
|seealso= [[openMap]], [[forceMap]], [[showMap]], [[visibleMap]], [[shownMap]]
}}
}}

Revision as of 13:03, 13 June 2021

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

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