Jump to content

ghost_nic

Member
  • Content Count

    2
  • Joined

  • Last visited

  • Medals

Community Reputation

10 Good

About ghost_nic

  • Rank
    Newbie
  1. thx, so the point of reference for the EH makes all the difference and adds more functionality :cool:
  2. Following on the above, I am trying to hint the real-time distance from the map cursor to the player while in map view. From various posts on the forums I have derived the code below which runs but outputs incorrect and erratic distances that are affected by speed of mouse movement, zoom etc. I have tried MouseMoving, MouseHolding & MouseButtonDown EH's all with the same problem. I would appreciate some help in getting this to work. openMap [true, false]; waitUntil {!(isNull (findDisplay 12))}; _index = (findDisplay 12) displayAddEventHandler [ "MouseMoving", " _WorldCoord = ((_this select 0) displayCtrl 51) ctrlMapScreenToWorld [_this select 1,_this select 2]; _WorldCoord = round(_WorldCoord distance player); hint str _WorldCoord; " ];
×