BlzGetTriggerPlayerMouseY
- comment
When used inside a mouse event trigger’s action/condition, it will return the Y coordinate (Cartesian System) of the ground location on the map, where the cursor points at.
Returns 0 when pointing at certain UI elements like the top status bar with clock and resources. However minimap and the entire bottom UI still show the correct coordinates.
- note
The world coordinate will be a result of ray tracing based on current camera setup. Changing the camera setup does not affect the result until a new frame has been rendered locally.
- event
EVENT_PLAYER_MOUSE_MOVE- bug
(confirmed v2.0.3.23175) Mouse events crash when registered and used during map initialization.
- note
See:
EVENT_PLAYER_MOUSE_MOVE(includes an example),BlzGetTriggerPlayerMouseY,BlzGetTriggerPlayerMousePosition- patch
1.29.2.9231
- Source
- common.j (suggest an edit or discuss on Github)
- return type
real- Source code
native BlzGetTriggerPlayerMouseY takes nothing returns real