ACE3/addons/maptools/functions/fnc_calculateMapScale.sqf
PabstMirror 73215b707d Remove Line Drawing from MapTools
And change map tools key to ALT from CTRL
2016-06-02 14:36:25 -05:00

19 lines
420 B
Plaintext

/*
* Author: esteldunedain
* Returns the equivalent of 100m in screen coordinates
*
* Arguments:
* None
*
* Return value:
* No
*
* Public: No
*/
#include "script_component.hpp"
private _pos = ((findDisplay 12) displayCtrl 51) ctrlMapScreenToWorld [0.5, 0.5];
private _screenOffset = ((findDisplay 12) displayCtrl 51) posWorldToScreen [(_pos select 0) + 100, (_pos select 1)];
(_screenOffset select 0) - 0.5