BIS fnc mapSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
m (1 revision)
m (Text replacement - "<code>(\[?[^\[]+\]?) *(\[\[)?(call|spawn)(\]\])? *(\[\[)?(BI(N|S)_fnc_[a-zA-Z0-9_]+)(\]\])?;?<\/code>" to "<sqf>$1 $3 $6;</sqf>")
 
(34 intermediate revisions by 4 users not shown)
Line 1: Line 1:
{{RV|type=function


{{Function|= Comments
|game1= arma3
____________________________________________________________________________________________
|version1= 1.00


| arma3 |= Game name
|gr1= Map and Markers


|1.00|= Game version
|descr= Returns map size from config. Do not confuse with [[worldSize]]. The engine command calculates the map size and doesn't read it from config.
____________________________________________________________________________________________


| <pre>/*
|s1= terrainName call [[BIS_fnc_mapSize]]


Description:
|p1= terrainName: [[String]] - (Optional, default [[worldName]]) world name
Returns map size.


Parameter(s):
|r1= [[Number]]
0 (Optional): STRING - world name (current world used as default)


Returns:
|x1= <sqf>"Altis" call BIS_fnc_mapSize;</sqf>
NUMBER
*/
</pre><small>''(Placeholder description extracted from the function header by [[BIS_fnc_exportFunctionsToWiki]])''</small> |= Description
____________________________________________________________________________________________


| <!-- [] call [[BIS_fnc_mapSize]]; --> |= Syntax
|x2= <sqf>worldName call BIS_fnc_mapSize;</sqf>


|p1= |= Parameter 1
|x3= <sqf>call BIS_fnc_mapSize;</sqf>
 
| |= Return value
____________________________________________________________________________________________
 
|x1= <code></code> |=
____________________________________________________________________________________________
 
| |= See also


|seealso= [[BIS_fnc_mapGridSize]] [[worldSize]] [[worldName]]
}}
}}
<h3 style="display:none">Notes</h3>
<dl class="command_description">
<!-- Note Section BEGIN -->
<!-- Note Section END -->
</dl>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:mapSize}}]]
[[Category:Functions|{{uc:mapSize}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:mapSize}}]]

Latest revision as of 14:24, 1 July 2022

Hover & click on the images for description

Description

Description:
Returns map size from config. Do not confuse with worldSize. The engine command calculates the map size and doesn't read it from config.
Execution:
call
Groups:
Map and Markers

Syntax

Syntax:
terrainName call BIS_fnc_mapSize
Parameters:
terrainName: String - (Optional, default worldName) world name
Return Value:
Number

Examples

Example 1:
"Altis" call BIS_fnc_mapSize;
Example 2:
worldName call BIS_fnc_mapSize;
Example 3:
call BIS_fnc_mapSize;

Additional Information

See also:
BIS_fnc_mapGridSize worldSize worldName

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