mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
21 lines
449 B
Plaintext
21 lines
449 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
* Returns the equivalent of 100m in screen coordinates
|
|
*
|
|
* Arguments:
|
|
* None
|
|
*
|
|
* Return value:
|
|
* No
|
|
*
|
|
* Public: No
|
|
*/
|
|
#include "script_component.hpp"
|
|
|
|
private ["_screenOffset", "_pos"];
|
|
|
|
_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
|