BIS fnc mapSize: Difference between revisions

From Bohemia Interactive Community
Jump to navigation Jump to search
No edit summary
(Fix examples, template and see also)
Line 1: Line 1:
{{Function|= Comments
{{Function|= Comments
____________________________________________________________________________________________
____________________________________________________________________________________________
Line 8: Line 7:
____________________________________________________________________________________________
____________________________________________________________________________________________


| Returns map size|= Description
| Returns map size. |= Description
____________________________________________________________________________________________
____________________________________________________________________________________________
|p1= world name (optional): [[String]] |= Parameter 1
 
____________________________________________________________________________________________
| terrainName call [[BIS_fnc_mapSize]] |= Syntax
|call [[BIS_fnc_mapSize]];|= Syntax
 
|p1= terrainName: [[String]] - (Optional, default [[worldName]]) world name |= Parameter 1
 
| [[Number]] |= Return value
____________________________________________________________________________________________
____________________________________________________________________________________________


|x1= <code>"Altis" call BIS_fnc_mapSize//Returns 30720</code> |=  
|x1= <code>"Altis" [[call]] [[BIS_fnc_mapSize]];</code> |= Example 1
 
|x2= <code>[[worldName]] [[call]] [[BIS_fnc_mapSize]]; {{codecomment|// equivalent to [[worldSize]]}}</code> |= Example 2
 
|x3= <code>[[call]] [[BIS_fnc_mapSize]]; {{codecomment|// equivalent to [[worldSize]]}}</code> |= Example 3
____________________________________________________________________________________________
____________________________________________________________________________________________


|[[worldSize]] |= See also
| [[worldSize]], [[worldName]] |= See also
 
}}
}}


Line 30: Line 35:


<h3 style="display:none">Bottom Section</h3>
<h3 style="display:none">Bottom Section</h3>
[[Category:Function Group: Map|{{uc:mapSize}}]]
[[Category:Function Group: Map|{{uc:{{PAGENAME}}}}]]
[[Category:Functions|{{uc:mapSize}}]]
[[Category:Functions|{{uc:{{PAGENAME}}}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:mapSize}}]]
[[Category:{{Name|arma3}}: Functions|{{uc:{{PAGENAME}}}}]]
 
<!-- CONTINUE Notes -->
<dl class="command_description">
<dd class="notedate">Posted on March 29, 2016 - 12:22 (UTC)</dd>
<dt class="note">[[User:Revo|Revo]]</dt>
<dd class="note">
It seems like this function does not return any world size if no string (world name) is provided. From my testing the engine command [[worldSize]] works more reliably.
</dd>
</dl>
<!-- DISCONTINUE Notes -->

Revision as of 09:42, 21 April 2018

Hover & click on the images for description

Description

Description:
Returns map size.
Execution:
call
Groups:
Uncategorised

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; // equivalent to worldSize
Example 3:
call BIS_fnc_mapSize; // equivalent to worldSize

Additional Information

See also:
worldSizeworldName

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

Notes

Bottom Section