Hello All!
I’m trying to at the moment implement a 2D sidescroller shooter esk minigame
I have the mouse shown already, and i know that i can draw a line trace from the character to the mouse.
However i have been trying to just print out the value of the mouse via the screen to then take those values and plug into an aim offset later in the future.
At the moment i have tried
When i get the mouse position and the aim offset to work i plan to just shoot a raycast straight out of the gun. Since at that point it should be pointing in the correct position it should hit
U can use GetCursorPos(&).For initialisation struct use type - POINT. One trick - if u show off cursor, all will work, because cursor will binding camera vector. (GetCursorPos(&) - standart WinAPI function)
If u need get position from ActorComponent with standart UnrealAPI - use: