ACE3/addons/maptools/functions/fnc_calculateMapScale.sqf
Nicolás Badano 518010be36 Reordered the map, mapfx and pbos:
- mapfx moved inside map
- everything related to map tools and drawing moved to it's own pbo called ace_maptools

Also fixed a couple of bugs in BFT
- Only a single marker was being drawn
- The BFT_HideAi parameter had the opposite effect
2015-03-14 16:58:05 -03:00

19 lines
400 B
Plaintext

/*
* Author: CAA-Picard
*
* Returns the equivalent of 100m in screen coordinates
*
* Argument:
* None
*
* Return value:
* Return
*/
#include "script_component.hpp"
_pos = ((finddisplay 12) displayctrl 51) ctrlMapScreenToWorld [0.5, 0.5];
_screenOffset = ((finddisplay 12) displayctrl 51) posWorldToScreen [(_pos select 0) + 100, (_pos select 1)];
(_screenOffset select 0) - 0.5