worldSize: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "|= Game name" to "|Game name=") |
Lou Montana (talk | contribs) m (Update description) |
||
Line 7: | Line 7: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| Returns the engine calculated size of the current world ( | | Returns the engine calculated size (terrain side length) of the current world ([[BIS_fnc_mapSize]] may return the same value, but is just a simple look up in [[configFile | config]]). |DESCRIPTION= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
Line 15: | Line 15: | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
|x1= <code>_size = [[worldSize]];</code> |EXAMPLE1= | |x1= <code>[[private]] _size = [[worldSize]];</code> |EXAMPLE1= | ||
____________________________________________________________________________________________ | ____________________________________________________________________________________________ | ||
| [[worldName]], [[missionName]], [[briefingName]], [[serverName]], [[BIS_fnc_mapSize]] |SEEALSO= | | [[worldName]], [[missionName]], [[briefingName]], [[serverName]], [[BIS_fnc_mapSize]] |SEEALSO= | ||
}} | }} | ||
Line 26: | Line 25: | ||
<!-- Note Section BEGIN --> | <!-- Note Section BEGIN --> | ||
<dd class="notedate">Posted on September 1, 2019 - 12:01 (UTC)</dd> | <dd class="notedate">Posted on September 1, 2019 - 12:01 (UTC)</dd> | ||
<dt class="note">[[User:R3vo|R3vo]]</dt> | <dt class="note">[[User:R3vo|R3vo]]</dt> | ||
<dd class="note"> | <dd class="note"> | ||
In order to cover the map by for example a round marker, one can get the dimensions like this:<br> | In order to cover the map by for example a round marker, one can get the dimensions like this:<br> | ||
<code>[[private]] _a = [[worldSize]] / 2; | <code>[[private]] _a = [[worldSize]] / 2; | ||
[[private]] _center = [_a, _a, 0]; | |||
[[private]] _size = [[sqrt]] 2 * _a;</code> | |||
</dd> | </dd> | ||
<!-- Note Section END --> | |||
</dl> | </dl> | ||
< | |||
<h3 style="display:none">Bottom Section</h3> | |||
[[Category:Command Group: Mission Information|{{uc:{{PAGENAME}}}}]] |
Revision as of 09:32, 13 July 2020
Description
- Description:
- Returns the engine calculated size (terrain side length) of the current world (BIS_fnc_mapSize may return the same value, but is just a simple look up in config).
- Groups:
- Uncategorised
Syntax
Examples
Additional Information
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
- Posted on September 1, 2019 - 12:01 (UTC)
- R3vo
-
In order to cover the map by for example a round marker, one can get the dimensions like this:
private _a = worldSize / 2; private _center = [_a, _a, 0]; private _size = sqrt 2 * _a;