- Più recenti
- Maggior numero di voti
- Maggior numero di commenti
Hey @REDACTEDUSER
Getting the mouse cursor position is not currently exposed to lua, but we'll add this as a request for a future release.
If it helps at all in the meantime, you can look at /dev/Code/CryEngine/CryAction/FlowSystem/Nodes/FlowMouseInfo.cpp for an example of how to get the mouse cursor position in C++, both relative to the screen (CFlowMouseCoordNode) and projected into the game world (CFlowMouseRayCast).
Hey @REDACTEDUSER
One year later..Do we have now the possibility to get mouse cursor position with Lua on 1.15 ?
We need it to raycast (at each click) a ray from mouse position and retrieve any entity hit by this ray.
Thanks in advance,
Nassim
I am also interested in a tutorial or answer. Need entities in the game to be able to be inspected with hovering over them with a mouse cursor.
Questo post è chiuso: l'aggiunta di nuove risposte, commenti e voti è disabilitata.
Contenuto pertinente
- AWS UFFICIALEAggiornata 3 anni fa
- AWS UFFICIALEAggiornata 2 anni fa