mirror of
https://github.com/acemod/ACE3.git
synced 2024-08-30 18:23:18 +00:00
19 lines
403 B
Plaintext
19 lines
403 B
Plaintext
/*
|
|
* Author: esteldunedain
|
|
*
|
|
* 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
|