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 ___________________...")
 
(format)
Line 2: Line 2:
____________________________________________________________________________________________
____________________________________________________________________________________________


| arma3 |= Game name
| arma3dev |= Game name
|dev|= Game version
|1.61|= Game version
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns if map is forced in an array containing forceMapForced, openMapForced respectively related to [[forceMap]] and [[openMap]].|= Description
| Returns if map was forced by using [[forceMap]] command or [[openMap]] command with force option |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________


| '''forcedMap''' |= Syntax
| '''forcedMap''' |= Syntax


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


|x1= <code>_IsForcedMap = [[forcedMap]];</code>|= EXAMPLE1  
|x1= <code>_forceMapForced = [[forcedMap]] [[select]] 0;
_openMapForced = [[forcedMap]] [[select]] 1;</code>|= EXAMPLE1  
| [[openMap]], [[forceMap]]|= SEEALSO  
| [[openMap]], [[forceMap]]|= SEEALSO  
|  |= MPBEHAVIOUR  
|  |= MPBEHAVIOUR  

Revision as of 22:28, 3 June 2016

-wrong parameter ("arma3dev") defined!-[[:Category:Introduced with arma3dev version 1.61|1.61]]
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:
Uncategorised

Syntax

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

Examples

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

Additional Information

See also:
openMapforceMap

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

[[Category:Introduced with arma3dev version 1.61]][[ Category: arma3dev: New Scripting Commands | FORCEDMAP]][[ Category: arma3dev: Scripting Commands | FORCEDMAP]]

Bottom Section

Notes

Bottom Section