Jump to content

How to get the current position of the cursor and the target currently selected by cursor


Recommended Posts

I want to add a skill.When you press the specified key on the keyboard,it works on the position where the cursor currently at or the target which currently selected by the cursor.But I don't know how to get them.Could anyone help me please.

Link to comment
Share on other sites

7 hours ago, SHI_YE said:

or the target which currently selected by the cursor.

TheInput:GetWorldEntityUnderMouse()

TheInput:GetHUDEntityUnderMouse()

TheInput:GetAllEntitiesUnderMouse()

Edited by penguin0616
  • Like 2
  • Thanks 1
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
  • Create New...