SHI_YE Posted April 7, 2021 Share Posted April 7, 2021 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 More sharing options...
-LukaS- Posted April 7, 2021 Share Posted April 7, 2021 c_select() returns an entity that's under the cursor. 1 Link to comment Share on other sites More sharing options...
penguin0616 Posted April 7, 2021 Share Posted April 7, 2021 (edited) 7 hours ago, SHI_YE said: or the target which currently selected by the cursor. TheInput:GetWorldEntityUnderMouse() TheInput:GetHUDEntityUnderMouse() TheInput:GetAllEntitiesUnderMouse() Edited April 7, 2021 by penguin0616 2 1 Link to comment Share on other sites More sharing options...
SHI_YE Posted April 8, 2021 Author Share Posted April 8, 2021 5 hours ago, penguin0616 said: TheInput:GetWorldEntityUnderMouse() TheInput:GetHUDEntityUnderMouse() TheInput:GetAllEntitiesUnderMouse() Thanks,buddy.I got it. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now