BIS fnc posDegToWorld: Difference between revisions
Jump to navigation
Jump to search
Lou Montana (talk | contribs) m (Text replacement - "{{Function " to "{{RV|type=function ") |
Lou Montana (talk | contribs) m (Text replacement - "\{\{ *codecomment *\| *\/\/ *([^ ]+) *\}\} " to "{{cc|$1}}") |
||
Line 9: | Line 9: | ||
| Convert latitude/longtitude coordinates into game world position.<br> | | Convert latitude/longtitude coordinates into game world position.<br> | ||
World config '''must''' contain following settings to convert the position correctly: | World config '''must''' contain following settings to convert the position correctly: | ||
<code>{{ | <code>{{cc| Required for scripting}}mapSize <nowiki>=</nowiki> 61440; {{cc| Can differ from mapArea size, as ingame world can be resized}}mapZone <nowiki>=</nowiki> 10; {{cc| UTM zone}}mapArea[] <nowiki>=</nowiki> { {{cc| lon/lat coordinates (not in UTM to assure .kml precision)}} -122.754367782585,47.3272454065969, {{cc| Bottom Left}} -121.930117859276,47.8753494907418 {{cc| Top Right}}};</code> | ||
mapSize <nowiki>=</nowiki> 61440; {{ | |||
mapZone <nowiki>=</nowiki> 10; {{ | |||
mapArea[] <nowiki>=</nowiki> { {{ | |||
};</code> | |||
| [longitude, latitude'', world''] call [[BIS_fnc_posDegToWorld]] | | [longitude, latitude'', world''] call [[BIS_fnc_posDegToWorld]] |
Revision as of 16:32, 29 January 2021
Description
- Description:
- Description needed
- Execution:
- call
- Groups:
- Map and Markers
Syntax
- Syntax:
- Syntax needed
- Parameters:
- longitude: Number
- latitude: Number
- world: String - (Optional, default worldName)
- Return Value:
- Return value needed
Examples
- Example 1:
[47.63959,-122.127249] call BIS_fnc_posDegToWorld;
Additional Information
- See also:
- See also needed
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