forcedMap: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (Text replacement - "\|x([0-9])= *<code>([^<]*)<\/code>" to "|x$1= <sqf>$2</sqf>")
m (Text replacement - "<sqf>([^↵][^\/]*↵[^\/]*)<\/sqf>" to "<sqf> $1 </sqf>")
 
(One intermediate revision by one other user not shown)
Line 12: Line 12:
|s1= [[forcedMap]]
|s1= [[forcedMap]]


|r1= [[Array]] - in format [forceMapForced, openMapForced]:
|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.


|x1= <sqf>_forceMapForced = forcedMap select 0;
|x1= <sqf>
_openMapForced = forcedMap select 1;</sqf>
_forceMapForced = forcedMap select 0;
_openMapForced = forcedMap select 1;
</sqf>


|seealso= [[openMap]] [[forceMap]] [[showMap]] [[visibleMap]] [[shownMap]]
|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